diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-17 01:42:18 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-17 01:42:18 +0800 |
commit | 91b0b14845750c81466880f5f877fe3fcbd03b09 (patch) | |
tree | f765fe3f66891a566e836ea748747ddab31bca85 /state | |
parent | bfcd2cf132c2f1e5c1afe6d71e3d9d9dcee5017b (diff) | |
download | dexon-91b0b14845750c81466880f5f877fe3fcbd03b09.tar.gz dexon-91b0b14845750c81466880f5f877fe3fcbd03b09.tar.zst dexon-91b0b14845750c81466880f5f877fe3fcbd03b09.zip |
converted vm
Diffstat (limited to 'state')
-rw-r--r-- | state/log.go | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/state/log.go b/state/log.go index a0859aaf2..8b8bf2204 100644 --- a/state/log.go +++ b/state/log.go @@ -9,7 +9,7 @@ import ( type Log interface { common.RlpEncodable - Address() []byte + Address() common.Address Topics() [][]byte Data() []byte @@ -17,17 +17,17 @@ type Log interface { } type StateLog struct { - address []byte + address common.Address topics [][]byte data []byte number uint64 } -func NewLog(address []byte, topics [][]byte, data []byte, number uint64) *StateLog { +func NewLog(address common.Address, topics [][]byte, data []byte, number uint64) *StateLog { return &StateLog{address, topics, data, number} } -func (self *StateLog) Address() []byte { +func (self *StateLog) Address() common.Address { return self.address } @@ -43,7 +43,12 @@ func (self *StateLog) Number() uint64 { return self.number } +/* func NewLogFromValue(decoder *common.Value) *StateLog { + var extlog struct { + + } + log := &StateLog{ address: decoder.Get(0).Bytes(), data: decoder.Get(2).Bytes(), @@ -56,6 +61,7 @@ func NewLogFromValue(decoder *common.Value) *StateLog { return log } +*/ func (self *StateLog) RlpData() interface{} { return []interface{}{self.address, common.ByteSliceToInterface(self.topics), self.data} |