Skip to content

Commit

Permalink
Parse chain ID as 64-bit integer (#10795)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsondav authored Sep 26, 2023
1 parent 3aa7a8d commit 539591d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/chains/evm/config/toml/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 539591d

Please sign in to comment.