aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/evm/main.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2014-12-22 02:06:24 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2014-12-22 02:06:24 +0800
commitbab78bbeb691d95bdd0222435af0c11cb3485a79 (patch)
tree804c9689546ce362a2862b00bb4e76160052f5d6 /cmd/evm/main.go
parent7a79428278412ab1f73708af51bce063b000b7a7 (diff)
parent1360f027d9e365242466ca346b2b56f421729d91 (diff)
downloadgo-tangerine-bab78bbeb691d95bdd0222435af0c11cb3485a79.tar
go-tangerine-bab78bbeb691d95bdd0222435af0c11cb3485a79.tar.gz
go-tangerine-bab78bbeb691d95bdd0222435af0c11cb3485a79.tar.bz2
go-tangerine-bab78bbeb691d95bdd0222435af0c11cb3485a79.tar.lz
go-tangerine-bab78bbeb691d95bdd0222435af0c11cb3485a79.tar.xz
go-tangerine-bab78bbeb691d95bdd0222435af0c11cb3485a79.tar.zst
go-tangerine-bab78bbeb691d95bdd0222435af0c11cb3485a79.zip
Merge branch 'tests' of github.com:ethereum/go-ethereum into tests
Diffstat (limited to 'cmd/evm/main.go')
-rw-r--r--cmd/evm/main.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd/evm/main.go b/cmd/evm/main.go
index 1e6c807b1..2bdfdfa9f 100644
--- a/cmd/evm/main.go
+++ b/cmd/evm/main.go
@@ -133,7 +133,7 @@ func (self *VMEnv) Value() *big.Int { return self.value }
func (self *VMEnv) GasLimit() *big.Int { return big.NewInt(1000000000) }
func (self *VMEnv) Depth() int { return 0 }
func (self *VMEnv) SetDepth(i int) { self.depth = i }
-func (self *VMEnv) AddLog(log *state.Log) {
+func (self *VMEnv) AddLog(log state.Log) {
self.state.AddLog(log)
}
func (self *VMEnv) Transfer(from, to vm.Account, amount *big.Int) error {
@@ -141,9 +141,7 @@ func (self *VMEnv) Transfer(from, to vm.Account, amount *big.Int) error {
}
func (self *VMEnv) vm(addr, data []byte, gas, price, value *big.Int) *core.Execution {
- evm := vm.New(self, vm.DebugVmTy)
-
- return core.NewExecution(evm, addr, data, gas, price, value)
+ return core.NewExecution(self, addr, data, gas, price, value)
}
func (self *VMEnv) Call(caller vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error) {