提交 e02eedb4 编写于 作者: T Taylor Gerring

BlockNumber as int fix

上级 7cbcd81d
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册