charges the creation cost of a tuple containing the given data and logs it
(v ...Data)
| 22 | |
| 23 | // charges the creation cost of a tuple containing the given data and logs it |
| 24 | func (vm *VM) log(v ...Data) Tuple { |
| 25 | if vm.Finalized { |
| 26 | panic(ErrFinalized) |
| 27 | } |
| 28 | t := Tuple(v) |
| 29 | vm.chargeCreate(t) |
| 30 | vm.Log = append(vm.Log, t) |
| 31 | vm.runHooks(vm.onLog) |
| 32 | return t |
| 33 | } |
| 34 | |
| 35 | func (vm *VM) logNonce(blockID []byte, exp int64) Tuple { |
| 36 | return vm.log(NonceTuple(vm.caller, vm.contract.seed, blockID, exp)...) |
no test coverage detected