diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-06-12 01:33:58 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-06-19 04:20:45 +0800 |
commit | 30444db02068210d41060a69b2c591107d9c94b3 (patch) | |
tree | a4e052bb42a1c8a5d9d0faeb877d99e98d5725f5 /tests | |
parent | c941a39b756783d95526a74374dd2aa4283474fa (diff) | |
download | go-tangerine-30444db02068210d41060a69b2c591107d9c94b3.tar go-tangerine-30444db02068210d41060a69b2c591107d9c94b3.tar.gz go-tangerine-30444db02068210d41060a69b2c591107d9c94b3.tar.bz2 go-tangerine-30444db02068210d41060a69b2c591107d9c94b3.tar.lz go-tangerine-30444db02068210d41060a69b2c591107d9c94b3.tar.xz go-tangerine-30444db02068210d41060a69b2c591107d9c94b3.tar.zst go-tangerine-30444db02068210d41060a69b2c591107d9c94b3.zip |
Add lost rebase changes
Diffstat (limited to 'tests')
-rw-r--r-- | tests/util.go | 10 |
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) |