core: allow to provide block in GetTestVM()
Sometimes amount of GAS consumed depends on block height.
This commit is contained in:
parent
42ae226f9e
commit
a5914f89fa
5 changed files with 6 additions and 6 deletions
|
@ -284,7 +284,7 @@ func TestCreateNEP5TransferTx(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
require.NoError(t, acc.SignTx(tx))
|
||||
require.NoError(t, chain.VerifyTx(tx))
|
||||
v := chain.GetTestVM(tx)
|
||||
v := chain.GetTestVM(tx, nil)
|
||||
v.LoadScriptWithFlags(tx.Script, smartcontract.All)
|
||||
require.NoError(t, v.Run())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue