diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-27 18:44:16 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-27 18:44:16 +0800 |
commit | 272d58662c885ab1cef8930e96fb832ae5377d96 (patch) | |
tree | e040eaec5c7e895dd6aaadedbbe30054aaa5e805 /ethchain/vm_env.go | |
parent | 6623500c6b2e5fe9fa41a1ce75269955af6026e8 (diff) | |
download | go-tangerine-272d58662c885ab1cef8930e96fb832ae5377d96.tar go-tangerine-272d58662c885ab1cef8930e96fb832ae5377d96.tar.gz go-tangerine-272d58662c885ab1cef8930e96fb832ae5377d96.tar.bz2 go-tangerine-272d58662c885ab1cef8930e96fb832ae5377d96.tar.lz go-tangerine-272d58662c885ab1cef8930e96fb832ae5377d96.tar.xz go-tangerine-272d58662c885ab1cef8930e96fb832ae5377d96.tar.zst go-tangerine-272d58662c885ab1cef8930e96fb832ae5377d96.zip |
Implemented LOG. Closes #159
Diffstat (limited to 'ethchain/vm_env.go')
-rw-r--r-- | ethchain/vm_env.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ethchain/vm_env.go b/ethchain/vm_env.go index 6dda27c6f..4dc96e8b1 100644 --- a/ethchain/vm_env.go +++ b/ethchain/vm_env.go @@ -31,6 +31,9 @@ func (self *VMEnv) BlockHash() []byte { return self.block.Hash() } func (self *VMEnv) Value() *big.Int { return self.tx.Value } func (self *VMEnv) State() *ethstate.State { return self.state } func (self *VMEnv) GasLimit() *big.Int { return self.block.GasLimit } +func (self *VMEnv) AddLog(log vm.Log) { + self.tx.addLog(log) +} func (self *VMEnv) Transfer(from, to vm.Account, amount *big.Int) error { return vm.Transfer(from, to, amount) } |