Skip to content

Commit

Permalink
Merge branch 'feature/chain-id-error-to-warn' into release/2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Navoichyk committed Feb 28, 2022
2 parents 9c1dd38 + 26c84ba commit e8915a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions chains/ethereum/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ The writer recieves the message and creates a proposals on-chain. Once a proposa
package ethereum

import (
"fmt"
"math/big"

bridge "github.com/Cerebellum-Network/ChainBridge/bindings/Bridge"
Expand Down Expand Up @@ -132,7 +131,7 @@ func InitializeChain(chainCfg *core.ChainConfig, logger log15.Logger, sysErr cha
}

if chainId != uint8(chainCfg.Id) {
return nil, fmt.Errorf("chainId (%d) and configuration chainId (%d) do not match", chainId, chainCfg.Id)
logger.Warn("Bridge chainId and configuration chainId do not match", "bridge", chainId, "configuration", chainCfg.Id)
}

erc20HandlerContract, err := erc20Handler.NewERC20Handler(cfg.erc20HandlerContract, conn.Client())
Expand Down

0 comments on commit e8915a4

Please sign in to comment.