Skip to content

Commit

Permalink
graphql: fix long literal passed in a variable (ethereum#24864)
Browse files Browse the repository at this point in the history
  • Loading branch information
s1na authored and sadoci committed Jan 27, 2023
1 parent 3bf164d commit 6c7aa4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions graphql/graphql.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ func (b *Long) UnmarshalGraphQL(input interface{}) error {
*b = Long(input)
case int64:
*b = Long(input)
case float64:
*b = Long(input)
default:
err = fmt.Errorf("unexpected type %T for Long", input)
}
Expand Down

0 comments on commit 6c7aa4e

Please sign in to comment.