aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-18 20:17:24 +0800
committerobscuren <geffobscura@gmail.com>2014-12-18 20:17:24 +0800
commit2d09e67713757e2a80eb614562c97f962af36cf7 (patch)
tree896f70825f9048ec569ad78ae77018435210b9e9 /xeth
parent49e0267fe76cfd13eaf3e5e26caa637b93dbdd29 (diff)
downloadgo-tangerine-2d09e67713757e2a80eb614562c97f962af36cf7.tar.gz
go-tangerine-2d09e67713757e2a80eb614562c97f962af36cf7.tar.zst
go-tangerine-2d09e67713757e2a80eb614562c97f962af36cf7.zip
Updated to new methods
Diffstat (limited to 'xeth')
-rw-r--r--xeth/hexface.go2
-rw-r--r--xeth/pipe.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/xeth/hexface.go b/xeth/hexface.go
index c1f49453d..75ec5f43d 100644
--- a/xeth/hexface.go
+++ b/xeth/hexface.go
@@ -29,7 +29,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)))
diff --git a/xeth/pipe.go b/xeth/pipe.go
index a8d8ed999..1e4d0ec60 100644
--- a/xeth/pipe.go
+++ b/xeth/pipe.go
@@ -82,7 +82,7 @@ func (self *XEth) Execute(addr []byte, data []byte, value, gas, price *ethutil.V
func (self *XEth) ExecuteObject(object *Object, data []byte, value, gas, price *ethutil.Value) ([]byte, error) {
var (
initiator = state.NewStateObject(self.obj.KeyManager().KeyPair().Address())
- block = self.chainManager.CurrentBlock
+ block = self.chainManager.CurrentBlock()
)
self.Vm.State = self.World().State().Copy()