From 826f9415f93c6cba04adb52767ad2e98777afba4 Mon Sep 17 00:00:00 2001 From: Dhruba Basu <7675102+dhrubabasu@users.noreply.github.com> Date: Fri, 27 Oct 2023 19:41:19 -0400 Subject: [PATCH] Fix test typos (#2233) Signed-off-by: marun Co-authored-by: marun --- vms/platformvm/txs/remove_subnet_validator_tx_test.go | 2 +- vms/platformvm/txs/transfer_subnet_ownership_tx_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vms/platformvm/txs/remove_subnet_validator_tx_test.go b/vms/platformvm/txs/remove_subnet_validator_tx_test.go index 02a9fdce7496..73f2df3cdcf2 100644 --- a/vms/platformvm/txs/remove_subnet_validator_tx_test.go +++ b/vms/platformvm/txs/remove_subnet_validator_tx_test.go @@ -263,7 +263,7 @@ func TestRemoveSubnetValidatorTxSerialization(t *testing.T) { } avax.SortTransferableOutputs(complexRemoveValidatorTx.Outs, Codec) utils.Sort(complexRemoveValidatorTx.Ins) - require.NoError(simpleRemoveValidatorTx.SyntacticVerify(&snow.Context{ + require.NoError(complexRemoveValidatorTx.SyntacticVerify(&snow.Context{ NetworkID: 1, ChainID: constants.PlatformChainID, AVAXAssetID: avaxAssetID, diff --git a/vms/platformvm/txs/transfer_subnet_ownership_tx_test.go b/vms/platformvm/txs/transfer_subnet_ownership_tx_test.go index 7e6f5835a283..e8cddeb3e1d0 100644 --- a/vms/platformvm/txs/transfer_subnet_ownership_tx_test.go +++ b/vms/platformvm/txs/transfer_subnet_ownership_tx_test.go @@ -103,7 +103,7 @@ func TestTransferSubnetOwnershipTxSerialization(t *testing.T) { expectedUnsignedSimpleTransferSubnetOwnershipTxBytes := []byte{ // Codec version 0x00, 0x00, - // RemoveSubnetValidatorTx Type ID + // TransferSubnetOwnershipTx Type ID 0x00, 0x00, 0x00, 0x21, // Mainnet network ID 0x00, 0x00, 0x00, 0x01, @@ -276,7 +276,7 @@ func TestTransferSubnetOwnershipTxSerialization(t *testing.T) { } avax.SortTransferableOutputs(complexTransferSubnetOwnershipTx.Outs, Codec) utils.Sort(complexTransferSubnetOwnershipTx.Ins) - require.NoError(simpleTransferSubnetOwnershipTx.SyntacticVerify(&snow.Context{ + require.NoError(complexTransferSubnetOwnershipTx.SyntacticVerify(&snow.Context{ NetworkID: 1, ChainID: constants.PlatformChainID, AVAXAssetID: avaxAssetID,