core: add finalizer functions to interop context
These functions are aimed to free the resources occupied by storage iterator by the end of script execution or whenever Finilize is called.
This commit is contained in:
parent
0a4f45c9b0
commit
07cbe4d253
11 changed files with 60 additions and 29 deletions
|
@ -714,7 +714,7 @@ func TestCreateNEP17TransferTx(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
require.NoError(t, acc.SignTx(testchain.Network(), tx))
|
||||
require.NoError(t, chain.VerifyTx(tx))
|
||||
v := chain.GetTestVM(trigger.Application, tx, nil)
|
||||
v, _ := chain.GetTestVM(trigger.Application, tx, nil)
|
||||
v.LoadScriptWithFlags(tx.Script, callflag.All)
|
||||
require.NoError(t, v.Run())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue