aboutsummaryrefslogtreecommitdiffstats
path: root/xeth/hexface.go
diff options
context:
space:
mode:
Diffstat (limited to 'xeth/hexface.go')
-rw-r--r--xeth/hexface.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xeth/hexface.go b/xeth/hexface.go
index 524b68210..dfb0a9fd8 100644
--- a/xeth/hexface.go
+++ b/xeth/hexface.go
@@ -28,7 +28,7 @@ func (self *JSXEth) BlockByHash(strHash string) *JSBlock {
func (self *JSXEth) BlockByNumber(num int32) *JSBlock {
if num == -1 {
- return NewJSBlock(self.obj.ChainManager().CurrentBlock)
+ return NewJSBlock(self.obj.ChainManager().CurrentBlock())
}
return NewJSBlock(self.obj.ChainManager().GetBlockByNumber(uint64(num)))