Commit 4e76aa9c authored by Ralph Pichler's avatar Ralph Pichler Committed by GitHub

fix: restore initial balance check (#2337)

parent cb397492
...@@ -131,12 +131,10 @@ func Init( ...@@ -131,12 +131,10 @@ func Init(
} }
if err == storage.ErrNotFound { if err == storage.ErrNotFound {
logger.Info("no chequebook found, deploying new one.") logger.Info("no chequebook found, deploying new one.")
if swapInitialDeposit.Cmp(big.NewInt(0)) != 0 {
err = checkBalance(ctx, logger, swapInitialDeposit, swapBackend, chainId, overlayEthAddress, erc20Service) err = checkBalance(ctx, logger, swapInitialDeposit, swapBackend, chainId, overlayEthAddress, erc20Service)
if err != nil { if err != nil {
return nil, err return nil, err
} }
}
nonce := make([]byte, 32) nonce := make([]byte, 32)
_, err = rand.Read(nonce) _, err = rand.Read(nonce)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment