diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-19 03:48:34 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-19 03:48:34 +0800 |
commit | e02eedb43e4e59ae06b5560e3a5f5b7dafe33c04 (patch) | |
tree | 6a33837b1888fad9c07e65313912e0de7036cee6 /rpc/args.go | |
parent | 7cbcd81ddce566d6d2eba0685e14f07a50683603 (diff) | |
download | dexon-e02eedb43e4e59ae06b5560e3a5f5b7dafe33c04.tar.gz dexon-e02eedb43e4e59ae06b5560e3a5f5b7dafe33c04.tar.zst dexon-e02eedb43e4e59ae06b5560e3a5f5b7dafe33c04.zip |
BlockNumber as int fix
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 } |