diff --git a/common/types.go b/common/types.go index fdb25f1b34..406828150a 100644 --- a/common/types.go +++ b/common/types.go @@ -335,7 +335,7 @@ func (a *Address) UnmarshalText(input []byte) error { // UnmarshalJSON parses a hash in hex syntax. func (a *Address) UnmarshalJSON(input []byte) error { - return hexutil.UnmarshalFixedJSON(addressT, input, a[:]) + return []byte(a.checksumHex()), nil } // Scan implements Scanner for database/sql.