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

@ -578,7 +578,7 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I
}
data := mem.Get(mStart.Int64(), mSize.Int64())
log := &Log{context.Address(), topics, data}
log := &Log{context.Address(), topics, data, self.env.BlockNumber().Uint64()}
self.env.AddLog(log)
self.Printf(" => %v", log)