We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 759aec7 commit dc4a32eCopy full SHA for dc4a32e
ethcoder/typed_data.go
@@ -339,8 +339,8 @@ func (t *TypedData) UnmarshalJSON(data []byte) error {
339
return fmt.Errorf("primary type '%s' is not defined", raw.PrimaryType)
340
}
341
342
- // Decode the domain, which is mostly decooded except the chainId is a string
343
- // but we want it in a big.Int. We do this as the value may be a number or a hex string.
+ // Decode the domain, which is mostly decooded except the chainId is an interface{} type
+ // because the value may be a number of a hex encoded number. We want it in a big.Int.
344
domain := TypedDataDomain{
345
Name: raw.Domain.Name,
346
Version: raw.Domain.Version,
0 commit comments