Skip to content

Commit

Permalink
Fix, don't change codes constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Agustin Aguilar committed Nov 1, 2018
1 parent f9e9787 commit db42e3b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/opcodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,13 @@ module.exports = function (op, full, freeLogs) {
}
}

var fee = opcode[1]

if (freeLogs) {
if (opcode === 'LOG') {
code[1] = 0
fee = 0
}
}

return {name: opcode, opcode: op, fee: code[1], in: code[2], out: code[3], dynamic: code[4], async: code[5]}
return {name: opcode, opcode: op, fee: fee, in: code[2], out: code[3], dynamic: code[4], async: code[5]}
}

0 comments on commit db42e3b

Please sign in to comment.