aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-23 07:01:41 +0800
committerobscuren <geffobscura@gmail.com>2014-10-23 07:01:41 +0800
commit411b9800aed6bff666df5ffad799c49b17af9a43 (patch)
treefb0f89f42dff71fa4304145e05c90b62c9e10e23 /utils
parent2e45e4d0151e893574acdef5b61cb2ef9b31556c (diff)
downloaddexon-411b9800aed6bff666df5ffad799c49b17af9a43.tar.gz
dexon-411b9800aed6bff666df5ffad799c49b17af9a43.tar.zst
dexon-411b9800aed6bff666df5ffad799c49b17af9a43.zip
Reflect VM Env changes
Diffstat (limited to 'utils')
-rw-r--r--utils/vm_env.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/vm_env.go b/utils/vm_env.go
index 585dda9cd..21341ab04 100644
--- a/utils/vm_env.go
+++ b/utils/vm_env.go
@@ -5,6 +5,7 @@ import (
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethstate"
+ "github.com/ethereum/eth-go/vm"
)
type VMEnv struct {
@@ -34,3 +35,6 @@ func (self *VMEnv) BlockHash() []byte { return self.block.Hash() }
func (self *VMEnv) Value() *big.Int { return self.value }
func (self *VMEnv) State() *ethstate.State { return self.state }
func (self *VMEnv) GasLimit() *big.Int { return self.block.GasLimit }
+func (self *VMEnv) Transfer(from, to vm.Account, amount *big.Int) error {
+ return vm.Transfer(from, to, amount)
+}