mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-11 17:31:35 +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)
|
*b = Long(input)
|
||||||
case int64:
|
case int64:
|
||||||
*b = Long(input)
|
*b = Long(input)
|
||||||
|
case float64:
|
||||||
|
*b = Long(input)
|
||||||
default:
|
default:
|
||||||
err = fmt.Errorf("unexpected type %T for Long", input)
|
err = fmt.Errorf("unexpected type %T for Long", input)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue