This commit is contained in:
andri lim 2019-02-25 22:59:05 +07:00
parent 9fcba8f90d
commit 9522c1145f
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
2 changed files with 2 additions and 3 deletions

View File

@ -113,8 +113,6 @@ proc applyMessageAux(computation: var BaseComputation, opCode: static[Op]) =
if computation.msg.depth > STACK_DEPTH_LIMIT:
raise newException(StackDepthError, "Stack depth limit reached")
let nilai = computation.vmState.readOnlyStateDb().getBalance(computation.msg.sender)
if computation.msg.value != 0:
let senderBalance =
computation.vmState.readOnlyStateDb().

View File

@ -228,7 +228,8 @@ proc opTableToCaseStmt(opTable: array[Op, NimNode], computation: NimNode): NimNo
# Wrap the case statement in while true + computed goto
result = quote do:
`computation`.prepareTracer()
if `computation`.tracingEnabled:
`computation`.prepareTracer()
var `instr` = `computation`.code.next()
while true:
{.computedGoto.}