From dc4a32eb2aae39447139da79b9b56b8f5cd130c7 Mon Sep 17 00:00:00 2001 From: Peter Kieltyka Date: Thu, 19 Dec 2024 09:29:29 -0500 Subject: [PATCH] comment --- ethcoder/typed_data.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethcoder/typed_data.go b/ethcoder/typed_data.go index 8b64477..f57c014 100644 --- a/ethcoder/typed_data.go +++ b/ethcoder/typed_data.go @@ -339,8 +339,8 @@ func (t *TypedData) UnmarshalJSON(data []byte) error { return fmt.Errorf("primary type '%s' is not defined", raw.PrimaryType) } - // Decode the domain, which is mostly decooded except the chainId is a string - // 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. domain := TypedDataDomain{ Name: raw.Domain.Name, Version: raw.Domain.Version,