Skip to content

Commit dc4a32e

Browse files
committed
comment
1 parent 759aec7 commit dc4a32e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ethcoder/typed_data.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ func (t *TypedData) UnmarshalJSON(data []byte) error {
339339
return fmt.Errorf("primary type '%s' is not defined", raw.PrimaryType)
340340
}
341341

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.
342+
// Decode the domain, which is mostly decooded except the chainId is an interface{} type
343+
// because the value may be a number of a hex encoded number. We want it in a big.Int.
344344
domain := TypedDataDomain{
345345
Name: raw.Domain.Name,
346346
Version: raw.Domain.Version,

0 commit comments

Comments
 (0)