mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
graphql: fix long literal passed in a variable (#24864)
This commit is contained in:
parent
e0a1fd5fdc
commit
440c9fcf75
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue