diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-22 20:26:18 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-22 20:26:18 +0800 |
commit | 8cc6647ebfd3e76a7d75e1d6961a8451fa5d702a (patch) | |
tree | 041b8f74bdcd290268a6b800e5fced2c20c98d88 /state/log.go | |
parent | 5912f0a849f64f8a4d7b681df8d101f3f4080e17 (diff) | |
parent | 321dce1f47135f673730cb86fdf1faf03dc6cbd4 (diff) | |
download | dexon-8cc6647ebfd3e76a7d75e1d6961a8451fa5d702a.tar dexon-8cc6647ebfd3e76a7d75e1d6961a8451fa5d702a.tar.gz dexon-8cc6647ebfd3e76a7d75e1d6961a8451fa5d702a.tar.bz2 dexon-8cc6647ebfd3e76a7d75e1d6961a8451fa5d702a.tar.lz dexon-8cc6647ebfd3e76a7d75e1d6961a8451fa5d702a.tar.xz dexon-8cc6647ebfd3e76a7d75e1d6961a8451fa5d702a.tar.zst dexon-8cc6647ebfd3e76a7d75e1d6961a8451fa5d702a.zip |
Merge branch 'release/0.8.5'
Diffstat (limited to 'state/log.go')
-rw-r--r-- | state/log.go | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/state/log.go b/state/log.go index 46360f4aa..d503bd1a0 100644 --- a/state/log.go +++ b/state/log.go @@ -12,16 +12,19 @@ type Log interface { Address() []byte Topics() [][]byte Data() []byte + + Number() uint64 } type StateLog struct { address []byte topics [][]byte data []byte + number uint64 } -func NewLog(address []byte, topics [][]byte, data []byte) *StateLog { - return &StateLog{address, topics, data} +func NewLog(address []byte, topics [][]byte, data []byte, number uint64) *StateLog { + return &StateLog{address, topics, data, number} } func (self *StateLog) Address() []byte { @@ -36,6 +39,10 @@ func (self *StateLog) Data() []byte { return self.data } +func (self *StateLog) Number() uint64 { + return self.number +} + func NewLogFromValue(decoder *ethutil.Value) *StateLog { log := &StateLog{ address: decoder.Get(0).Bytes(), |