Skip to content

Commit 8752280

Browse files
fix: use proper subnet chain ID
1 parent 5d1b521 commit 8752280

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

plugin/evm/tx_gossip_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,16 @@ import (
3535
agoUtils "github.com/ava-labs/avalanchego/utils"
3636
)
3737

38+
// SubnetEVMTestChainID is a subnet-evm specific chain ID for testing
39+
var SubnetEVMTestChainID = ids.GenerateTestID()
40+
3841
func TestEthTxGossip(t *testing.T) {
3942
require := require.New(t)
4043
ctx := t.Context()
4144

4245
validatorState := utilstest.NewTestValidatorState()
43-
subnetID, err := validatorState.GetSubnetID(t.Context(), snowtest.CChainID)
44-
require.NoError(err)
4546

46-
snowCtx := snowtest.Context(t, subnetID)
47+
snowCtx := snowtest.Context(t, SubnetEVMTestChainID)
4748
snowCtx.ValidatorState = validatorState
4849

4950
responseSender := &enginetest.SenderStub{

0 commit comments

Comments
 (0)