diff options
author | obscuren <geffobscura@gmail.com> | 2014-12-20 09:21:13 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-12-20 09:21:13 +0800 |
commit | 1508a23a6fe3cc50f718bfd6c62caae056534c09 (patch) | |
tree | 78853077f6b961bf27c5bdf74673c255e96aba1d /vm/environment.go | |
parent | f5b8f3d41b533d51eb81e895ed9b6aa31d7aaaef (diff) | |
download | go-tangerine-1508a23a6fe3cc50f718bfd6c62caae056534c09.tar go-tangerine-1508a23a6fe3cc50f718bfd6c62caae056534c09.tar.gz go-tangerine-1508a23a6fe3cc50f718bfd6c62caae056534c09.tar.bz2 go-tangerine-1508a23a6fe3cc50f718bfd6c62caae056534c09.tar.lz go-tangerine-1508a23a6fe3cc50f718bfd6c62caae056534c09.tar.xz go-tangerine-1508a23a6fe3cc50f718bfd6c62caae056534c09.tar.zst go-tangerine-1508a23a6fe3cc50f718bfd6c62caae056534c09.zip |
Minor updates on gas and removed/refactored old code.
Diffstat (limited to 'vm/environment.go')
-rw-r--r-- | vm/environment.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vm/environment.go b/vm/environment.go index d77fb1419..969bc5e43 100644 --- a/vm/environment.go +++ b/vm/environment.go @@ -2,6 +2,7 @@ package vm import ( "errors" + "fmt" "math/big" "github.com/ethereum/go-ethereum/ethutil" @@ -74,3 +75,7 @@ func (self *Log) Data() []byte { func (self *Log) RlpData() interface{} { return []interface{}{self.address, ethutil.ByteSliceToInterface(self.topics), self.data} } + +func (self *Log) String() string { + return fmt.Sprintf("[A=%x T=%x D=%x]", self.address, self.topics, self.data) +} |