mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-01 09:03:48 +00:00
BlockNumber as int fix
This commit is contained in:
parent
7cbcd81ddc
commit
e02eedb43e
1 changed files with 2 additions and 2 deletions
|
|
@ -10,9 +10,9 @@ import (
|
|||
|
||||
func blockAge(raw interface{}, number *int64) (err error) {
|
||||
// Parse as integer
|
||||
num, ok := raw.(int64)
|
||||
num, ok := raw.(float64)
|
||||
if ok {
|
||||
*number = num
|
||||
*number = int64(num)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue