Added the possibility for debug hooks during closure call

This commit is contained in:
obscuren
2014-04-11 08:28:30 -04:00
parent 7d6ba88d2b
commit ca747f2688
4 changed files with 12 additions and 45 deletions

View File

@ -327,7 +327,7 @@ func (sm *StateManager) ProcessContract(contract *Contract, tx *Transaction, blo
// XXX Tx data? Could be just an argument to the closure instead
txData: nil,
})
closure.Call(vm, nil)
closure.Call(vm, nil, nil)
// Update the account (refunds)
sm.procState.UpdateAccount(tx.Sender(), caller)