Update types.go

i have updated line328
This commit is contained in:
M.Mohamed Fouzhan 2024-10-18 12:55:08 +05:30 committed by GitHub
parent afea3bd49c
commit dc5c850116
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.