File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -609,12 +609,8 @@ func NewBlockChainAPI(b Backend) *BlockChainAPI {
609609}
610610
611611// ChainId is the EIP-155 replay-protection chain id for the current Ethereum chain config.
612- func (api * BlockChainAPI ) ChainId () (* hexutil.Big , error ) {
613- // if current block is at or past the EIP-155 replay-protection fork block, return chainID from config
614- if config := api .b .ChainConfig (); config .IsEIP155 (api .b .CurrentBlock ().Number ()) {
615- return (* hexutil .Big )(config .ChainID ), nil
616- }
617- return nil , fmt .Errorf ("chain not synced beyond EIP-155 replay-protection fork block" )
612+ func (api * BlockChainAPI ) ChainId () * hexutil.Big {
613+ return (* hexutil .Big )(api .b .ChainConfig ().ChainID )
618614}
619615
620616// BlockNumber returns the block number of the chain head.
You can’t perform that action at this time.
0 commit comments