From 539591d0b2947691a9415af64e7d1f03173c7be1 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 26 Sep 2023 11:02:16 -0400 Subject: [PATCH] Parse chain ID as 64-bit integer (#10795) --- core/chains/evm/config/toml/config.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/chains/evm/config/toml/config.go b/core/chains/evm/config/toml/config.go index a94e45ae894..a62c554a21e 100644 --- a/core/chains/evm/config/toml/config.go +++ b/core/chains/evm/config/toml/config.go @@ -804,9 +804,5 @@ func (n *Node) SetFrom(f *Node) { } func ChainIDInt64(cid relay.ChainID) (int64, error) { - i, err := strconv.Atoi(cid) - if err != nil { - return int64(0), err - } - return int64(i), nil + return strconv.ParseInt(cid, 10, 64) }