simplify 'execComputation'

This commit is contained in:
andri lim 2020-01-20 20:20:15 +07:00 committed by zah
parent 83e9debb62
commit 577c7ca5aa
1 changed files with 2 additions and 3 deletions

View File

@ -78,11 +78,10 @@ proc execComputation*(c: Computation) =
if c.isSuccess:
c.refundSelfDestruct()
c.vmState.suicides = c.getSuicides()
c.vmState.suicides = c.getSuicides()
c.vmState.addLogs(c.logEntries)
c.vmstate.status = c.isSuccess
if c.isSuccess:
c.vmState.addLogs(c.logEntries)
proc refundGas*(c: Computation, tx: Transaction, sender: EthAddress): GasInt =
let