diff options
Diffstat (limited to 'xeth/xeth.go')
-rw-r--r-- | xeth/xeth.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go index 88ae253cd..c0281f1da 100644 --- a/xeth/xeth.go +++ b/xeth/xeth.go @@ -99,7 +99,7 @@ func (self *XEth) BlockByHash(strHash string) *Block { return NewBlock(block) } -func (self *XEth) BlockByNumber(num int32) *Block { +func (self *XEth) BlockByNumber(num int64) *Block { if num == -1 { return NewBlock(self.chainManager.CurrentBlock()) } @@ -109,11 +109,11 @@ func (self *XEth) BlockByNumber(num int32) *Block { func (self *XEth) Block(v interface{}) *Block { if n, ok := v.(int32); ok { - return self.BlockByNumber(n) + return self.BlockByNumber(int64(n)) } else if str, ok := v.(string); ok { return self.BlockByHash(str) } else if f, ok := v.(float64); ok { // Don't ask ... - return self.BlockByNumber(int32(f)) + return self.BlockByNumber(int64(f)) } return nil |