aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-06-10 22:46:43 +0800
committerobscuren <geffobscura@gmail.com>2015-06-10 22:46:43 +0800
commitf249ccaa89afa3340c3abd8578516b648e633e96 (patch)
treeabdced13003933dcf61b5e0deff80f40acd3da05 /cmd
parentcf3aabb9d3dd7554d5859b36ed290f2e031ba33a (diff)
downloadgo-tangerine-f249ccaa89afa3340c3abd8578516b648e633e96.tar
go-tangerine-f249ccaa89afa3340c3abd8578516b648e633e96.tar.gz
go-tangerine-f249ccaa89afa3340c3abd8578516b648e633e96.tar.bz2
go-tangerine-f249ccaa89afa3340c3abd8578516b648e633e96.tar.lz
go-tangerine-f249ccaa89afa3340c3abd8578516b648e633e96.tar.xz
go-tangerine-f249ccaa89afa3340c3abd8578516b648e633e96.tar.zst
go-tangerine-f249ccaa89afa3340c3abd8578516b648e633e96.zip
cmd/evm: implements vm.Environment
Diffstat (limited to 'cmd')
-rw-r--r--cmd/evm/main.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/evm/main.go b/cmd/evm/main.go
index 561f1a943..599721c89 100644
--- a/cmd/evm/main.go
+++ b/cmd/evm/main.go
@@ -104,6 +104,7 @@ type VMEnv struct {
depth int
Gas *big.Int
time int64
+ logs []vm.StructLog
}
func NewEnv(state *state.StateDB, transactor common.Address, value *big.Int) *VMEnv {
@@ -133,6 +134,12 @@ func (self *VMEnv) GetHash(n uint64) common.Hash {
}
return common.Hash{}
}
+func (self *VMEnv) AddStructLog(log vm.StructLog) {
+ self.logs = append(self.logs, log)
+}
+func (self *VMEnv) StructLogs() []vm.StructLog {
+ return self.logs
+}
func (self *VMEnv) AddLog(log *state.Log) {
self.state.AddLog(log)
}