mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
Update types.go
i have updated line328
This commit is contained in:
parent
afea3bd49c
commit
dc5c850116
1 changed files with 1 additions and 1 deletions
|
|
@ -335,7 +335,7 @@ func (a *Address) UnmarshalText(input []byte) error {
|
||||||
|
|
||||||
// UnmarshalJSON parses a hash in hex syntax.
|
// UnmarshalJSON parses a hash in hex syntax.
|
||||||
func (a *Address) UnmarshalJSON(input []byte) error {
|
func (a *Address) UnmarshalJSON(input []byte) error {
|
||||||
return hexutil.UnmarshalFixedJSON(addressT, input, a[:])
|
return []byte(a.checksumHex()), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Scan implements Scanner for database/sql.
|
// Scan implements Scanner for database/sql.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue