Skip to content

Commit

Permalink
fix: use lowercase network name to retrieve chainid
Browse files Browse the repository at this point in the history
  • Loading branch information
iczc committed Sep 22, 2021
1 parent b9135a3 commit 0799959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func Execute() {
panic(fmt.Errorf("failed to read private key: %w", err))
}
var chainID *big.Int
if value, ok := chainIDMap[*chainNameFlag]; ok {
if value, ok := chainIDMap[strings.ToLower(*chainNameFlag)]; ok {
chainID = big.NewInt(int64(value))
}

Expand Down

0 comments on commit 0799959

Please sign in to comment.