aboutsummaryrefslogtreecommitdiffstats
path: root/tests/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/util.go')
-rw-r--r--tests/util.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/util.go b/tests/util.go
index 6554c4b94..67650c188 100644
--- a/tests/util.go
+++ b/tests/util.go
@@ -124,7 +124,7 @@ type Env struct {
difficulty *big.Int
gasLimit *big.Int
- logs state.Logs
+ logs []vm.StructLog
vmTest bool
}
@@ -135,6 +135,14 @@ func NewEnv(state *state.StateDB) *Env {
}
}
+func (self *Env) StructLogs() []vm.StructLog {
+ return self.logs
+}
+
+func (self *Env) AddStructLog(log vm.StructLog) {
+ self.logs = append(self.logs, log)
+}
+
func NewEnvFromMap(state *state.StateDB, envValues map[string]string, exeValues map[string]string) *Env {
env := NewEnv(state)