Apply suggestions from code review

Co-authored-by: raulk <raul@protocol.ai>
This commit is contained in:
ychiao 2023-02-10 10:42:19 -05:00 committed by GitHub
parent e06e3a0654
commit 37044ed3c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ func (e *EthUint64) UnmarshalJSON(b []byte) error {
*e = EthUint64(eint)
return nil
}
return fmt.Errorf("cannot parse %s into EthUint64", string(b))
return fmt.Errorf("cannot interpret %s as a hex-encoded uint64, or a number", string(b))
}
func EthUint64FromHex(s string) (EthUint64, error) {