solve gosec issues

This commit is contained in:
SpideyPool192
2022-09-08 11:43:47 +05:30
parent 9c49c2b934
commit 9e014725b8
3 changed files with 24 additions and 14 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ func (e *EVMBackend) BlockNumber() (hexutil.Uint64, error) {
return 0, fmt.Errorf("unexpected '%s' gRPC header length; got %d, expected: %d", grpctypes.GRPCBlockHeightHeader, headerLen, 1)
}
height, err := strconv.ParseUint(blockHeightHeader[0], 10, 64)
height, err := strconv.ParseUint(blockHeightHeader[0], 10, 63)
if err != nil {
return 0, fmt.Errorf("failed to parse block height: %w", err)
}