aboutsummaryrefslogtreecommitdiffstats
path: root/state
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-22 20:24:26 +0800
committerobscuren <geffobscura@gmail.com>2015-02-22 20:24:26 +0800
commitbba85a207488d27819dc6f6f5758b80947ea200b (patch)
tree46ab6ed3f414d008019d8c35d90cf16ed0ef4dfd /state
parent483d96a89d68023360d211ab329400f4b960fe48 (diff)
downloadgo-tangerine-bba85a207488d27819dc6f6f5758b80947ea200b.tar
go-tangerine-bba85a207488d27819dc6f6f5758b80947ea200b.tar.gz
go-tangerine-bba85a207488d27819dc6f6f5758b80947ea200b.tar.bz2
go-tangerine-bba85a207488d27819dc6f6f5758b80947ea200b.tar.lz
go-tangerine-bba85a207488d27819dc6f6f5758b80947ea200b.tar.xz
go-tangerine-bba85a207488d27819dc6f6f5758b80947ea200b.tar.zst
go-tangerine-bba85a207488d27819dc6f6f5758b80947ea200b.zip
Added Number to logs
Diffstat (limited to 'state')
-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(),