remove unneeded param from transferBalance

This commit is contained in:
andri lim 2019-03-13 22:14:10 +07:00
parent 44688259f1
commit 4ed98e03d1
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ proc commit*(snapshot: var ComputationSnapshot) {.inline.} =
proc dispose*(snapshot: var ComputationSnapshot) {.inline.} =
snapshot.snapshot.dispose()
proc transferBalance(computation: var BaseComputation, opCode: static[Op]) =
proc transferBalance(computation: var BaseComputation) =
if computation.msg.depth >= MaxCallDepth:
raise newException(StackDepthError, "Stack depth limit reached")
@ -130,7 +130,7 @@ proc applyMessage(computation: var BaseComputation, opCode: static[Op]): bool =
when opCode in {Call, Create}:
try:
computation.transferBalance(opCode)
computation.transferBalance()
except VMError:
snapshot.revert()
debug "transferBalance failed", msg = computation.error.info