Minor updates on gas and removed/refactored old code.

This commit is contained in:
obscuren
2014-12-20 02:21:13 +01:00
parent f5b8f3d41b
commit 1508a23a6f
6 changed files with 55 additions and 42 deletions

View File

@ -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)
}