diff options
author | aaronbuchwald <[email protected]> | 2020-12-17 17:13:04 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-17 17:13:04 -0500 |
commit | 374b401198759f23bac435a78c5b1fa2c516aad9 (patch) | |
tree | f3d33fa99fc7d46dd2836bef500d8a1cf445e094 /plugin/evm/import_tx_test.go | |
parent | c765f9b5b38d3e4b5f4261d3c4ab776dd9c3c97a (diff) | |
parent | 72f10d245f5514de4f586ca97784d599d00cc8f3 (diff) |
Dev
Diffstat (limited to 'plugin/evm/import_tx_test.go')
-rw-r--r-- | plugin/evm/import_tx_test.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugin/evm/import_tx_test.go b/plugin/evm/import_tx_test.go index 973802a..139aa4e 100644 --- a/plugin/evm/import_tx_test.go +++ b/plugin/evm/import_tx_test.go @@ -178,7 +178,7 @@ func TestImportTxSemanticVerify(t *testing.T) { Outs: []EVMOutput{evmOutput}, } - state, err := vm.chain.BlockState(vm.lastAccepted.ethBlock) + state, err := vm.chain.CurrentState() if err != nil { t.Fatalf("Failed to get last accepted stateDB due to: %s", err) } @@ -291,6 +291,12 @@ func TestImportTxSemanticVerify(t *testing.T) { func TestNewImportTx(t *testing.T) { _, vm, _, sharedMemory := GenesisVM(t, true) + defer func() { + if err := vm.Shutdown(); err != nil { + t.Fatal(err) + } + }() + importAmount := uint64(1000000) utxoID := avax.UTXOID{ TxID: ids.ID{ |