Remove gas cost for LOG opcode

Should mean fewer alterations are required when switching between
regular testing and using solcover.
uport
Alex Rea 8 years ago
parent 66e46a0d95
commit cf878959f3
  1. 14
      hookIntoEvents.patch

@ -1,5 +1,5 @@
--- opFns.js.orig 2016-09-27 10:00:02.000000000 +0100
+++ opFns.js 2016-09-27 10:00:59.000000000 +0100
--- opFns.js.orig 2016-07-04 17:29:54.000000000 +0100
+++ opFns.js 2016-09-30 12:30:33.000000000 +0100
@@ -6,6 +6,7 @@
const logTable = require('./logTable.js')
const ERROR = constants.ERROR
@ -8,7 +8,15 @@
// the opcode functions
module.exports = {
@@ -507,6 +508,12 @@
@@ -499,7 +500,6 @@
memLength = utils.bufferToInt(memLength)
const numOfTopics = runState.opCode - 0xa0
const mem = memLoad(runState, memOffset, memLength)
- subGas(runState, new BN(numOfTopics * fees.logTopicGas.v + memLength * fees.logDataGas.v))
// add address
var log = [runState.address]
@@ -507,6 +507,12 @@
// add data
log.push(mem)

Loading…
Cancel
Save