Skip to content

Commit

Permalink
fix graphql address parse (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
error2215 authored Mar 10, 2024
1 parent c64b78c commit c3f682d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ func (a *Address) UnmarshalGraphQL(input interface{}) error {
var err error
switch input := input.(type) {
case string:
err = a.UnmarshalText([]byte(input))
*a, err = HexToAddress(input)
default:
err = fmt.Errorf("unexpected type %T for Address", input)
}
Expand Down

0 comments on commit c3f682d

Please sign in to comment.