diff --git a/validation/gas-token_test.go b/validation/gas-token_test.go index 084f582cd2..0d072f075d 100644 --- a/validation/gas-token_test.go +++ b/validation/gas-token_test.go @@ -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")