aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-24 23:34:28 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-24 23:34:28 +0800
commit65d553d367d698b26a9586bd709d561d00b4f5a8 (patch)
treef7e1f1500080fe82c480252ce95e14273c4154c0 /xeth
parent59b6b619a2d257b6165f9b18dcab566a16eee2a2 (diff)
downloaddexon-65d553d367d698b26a9586bd709d561d00b4f5a8.tar
dexon-65d553d367d698b26a9586bd709d561d00b4f5a8.tar.gz
dexon-65d553d367d698b26a9586bd709d561d00b4f5a8.tar.bz2
dexon-65d553d367d698b26a9586bd709d561d00b4f5a8.tar.lz
dexon-65d553d367d698b26a9586bd709d561d00b4f5a8.tar.xz
dexon-65d553d367d698b26a9586bd709d561d00b4f5a8.tar.zst
dexon-65d553d367d698b26a9586bd709d561d00b4f5a8.zip
Update internal calls to use CurrentBlock()
Diffstat (limited to 'xeth')
-rw-r--r--xeth/xeth.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index b7d10cac3..92b48e8d8 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -204,7 +204,7 @@ func (self *XEth) BlockByNumber(num int64) *Block {
}
if num == -1 {
- return NewBlock(self.backend.ChainManager().CurrentBlock())
+ return NewBlock(self.CurrentBlock())
}
return NewBlock(self.backend.ChainManager().GetBlockByNumber(uint64(num)))
@@ -217,7 +217,7 @@ func (self *XEth) EthBlockByNumber(num int64) *types.Block {
}
if num == -1 {
- return self.backend.ChainManager().CurrentBlock()
+ return self.CurrentBlock()
}
return self.backend.ChainManager().GetBlockByNumber(uint64(num))
@@ -549,7 +549,7 @@ func (self *XEth) Call(fromStr, toStr, valueStr, gasStr, gasPriceStr, dataStr st
msg.gasPrice = defaultGasPrice
}
- block := self.backend.ChainManager().CurrentBlock()
+ block := self.CurrentBlock()
vmenv := core.NewEnv(statedb, self.backend.ChainManager(), msg, block)
res, err := vmenv.Call(msg.from, msg.to, msg.data, msg.gas, msg.gasPrice, msg.value)