aboutsummaryrefslogtreecommitdiffstats
path: root/state/log.go
diff options
context:
space:
mode:
authorEthan Buchman <ethan@coinculture.info>2015-02-27 06:54:57 +0800
committerEthan Buchman <ethan@coinculture.info>2015-02-27 06:54:57 +0800
commit5a827417d9cef0d2a765df11e747b1755bf04898 (patch)
treecd3764686dcb59f5b1b9faf16c9f29dcc5efd593 /state/log.go
parent9446489cf3f2eb4b5237b9355b3975fde2886508 (diff)
parentcc5c8a444dbc23501ba1a131eb2334f4b5e1ce9f (diff)
downloadgo-tangerine-5a827417d9cef0d2a765df11e747b1755bf04898.tar
go-tangerine-5a827417d9cef0d2a765df11e747b1755bf04898.tar.gz
go-tangerine-5a827417d9cef0d2a765df11e747b1755bf04898.tar.bz2
go-tangerine-5a827417d9cef0d2a765df11e747b1755bf04898.tar.lz
go-tangerine-5a827417d9cef0d2a765df11e747b1755bf04898.tar.xz
go-tangerine-5a827417d9cef0d2a765df11e747b1755bf04898.tar.zst
go-tangerine-5a827417d9cef0d2a765df11e747b1755bf04898.zip
Merge branch 'develop' of https://github.com/ethereum/go-ethereum into develop
Diffstat (limited to 'state/log.go')
-rw-r--r--state/log.go11
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(),