Added Number to logs

This commit is contained in:
obscuren
2015-02-22 13:24:26 +01:00
parent 483d96a89d
commit bba85a2074
4 changed files with 17 additions and 3 deletions

View File

@ -54,6 +54,7 @@ type Log struct {
address []byte
topics [][]byte
data []byte
log uint64
}
func (self *Log) Address() []byte {
@ -68,6 +69,10 @@ func (self *Log) Data() []byte {
return self.data
}
func (self *Log) Number() uint64 {
return self.log
}
func (self *Log) RlpData() interface{} {
return []interface{}{self.address, ethutil.ByteSliceToInterface(self.topics), self.data}
}