From e02eedb43e4e59ae06b5560e3a5f5b7dafe33c04 Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Wed, 18 Mar 2015 15:48:34 -0400 Subject: [PATCH] BlockNumber as int fix --- rpc/args.go | 4 ++-- 1 file 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 }