diff options
Diffstat (limited to 'rpc/args.go')
-rw-r--r-- | rpc/args.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/args.go b/rpc/args.go index 86ffd0c3a..992ea1eed 100644 --- a/rpc/args.go +++ b/rpc/args.go @@ -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 } |