Skip to content

Commit

Permalink
fix gas-token_test
Browse files Browse the repository at this point in the history
  • Loading branch information
geoknee committed Aug 28, 2024
1 parent 4e6edcb commit 9e43d68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions validation/gas-token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ func getBool(method string, contractAddress Address, client *ethclient.Client) (
return false, err
}

switch string(result) {
case "0x1":
switch common.HexToHash(string(result)) {
case common.Hash{1}:
return true, nil
case "0x0":
case common.Hash{}:
return false, nil
default:
return false, errors.New("unexpected non-bool return value")
Expand Down

0 comments on commit 9e43d68

Please sign in to comment.