@@ -43,6 +43,7 @@ import (
4343 "github.com/ava-labs/subnet-evm/core"
4444 "github.com/ava-labs/subnet-evm/core/txpool"
4545 "github.com/ava-labs/subnet-evm/core/types"
46+ customvm "github.com/ava-labs/subnet-evm/core/vm"
4647 "github.com/ava-labs/subnet-evm/eth"
4748 "github.com/ava-labs/subnet-evm/metrics"
4849 "github.com/ava-labs/subnet-evm/params"
@@ -56,7 +57,6 @@ import (
5657 "github.com/ava-labs/subnet-evm/precompile/contracts/txallowlist"
5758 "github.com/ava-labs/subnet-evm/rpc"
5859 "github.com/ava-labs/subnet-evm/utils"
59- "github.com/ava-labs/subnet-evm/vmerrs"
6060
6161 avagoconstants "github.com/ava-labs/avalanchego/utils/constants"
6262)
@@ -2163,7 +2163,7 @@ func TestTxAllowListSuccessfulTx(t *testing.T) {
21632163 }
21642164
21652165 errs = vm .txPool .AddRemotesSync ([]* types.Transaction {signedTx1 })
2166- if err := errs [0 ]; ! errors .Is (err , vmerrs .ErrSenderAddressNotAllowListed ) {
2166+ if err := errs [0 ]; ! errors .Is (err , customvm .ErrSenderAddressNotAllowListed ) {
21672167 t .Fatalf ("expected ErrSenderAddressNotAllowListed, got: %s" , err )
21682168 }
21692169
@@ -2173,7 +2173,7 @@ func TestTxAllowListSuccessfulTx(t *testing.T) {
21732173 require .NoError (t , err )
21742174
21752175 errs = vm .txPool .AddRemotesSync ([]* types.Transaction {signedTx2 })
2176- require .ErrorIs (t , errs [0 ], vmerrs .ErrSenderAddressNotAllowListed )
2176+ require .ErrorIs (t , errs [0 ], customvm .ErrSenderAddressNotAllowListed )
21772177
21782178 blk := issueAndAccept (t , issuer , vm )
21792179 newHead := <- newTxPoolHeadChan
@@ -2377,7 +2377,7 @@ func TestTxAllowListDisablePrecompile(t *testing.T) {
23772377 }
23782378
23792379 errs = vm .txPool .AddRemotesSync ([]* types.Transaction {signedTx1 })
2380- if err := errs [0 ]; ! errors .Is (err , vmerrs .ErrSenderAddressNotAllowListed ) {
2380+ if err := errs [0 ]; ! errors .Is (err , customvm .ErrSenderAddressNotAllowListed ) {
23812381 t .Fatalf ("expected ErrSenderAddressNotAllowListed, got: %s" , err )
23822382 }
23832383
@@ -2597,7 +2597,7 @@ func TestAllowFeeRecipientDisabled(t *testing.T) {
25972597
25982598 modifiedBlk := vm .newBlock (modifiedBlock )
25992599
2600- require .ErrorIs (t , modifiedBlk .Verify (context .Background ()), vmerrs .ErrInvalidCoinbase )
2600+ require .ErrorIs (t , modifiedBlk .Verify (context .Background ()), customvm .ErrInvalidCoinbase )
26012601}
26022602
26032603func TestAllowFeeRecipientEnabled (t * testing.T ) {
0 commit comments