From e65337cbdce9d17ebf8a8bd8cdcb16c1c6bf1a6d Mon Sep 17 00:00:00 2001 From: Stephen Buttolph Date: Fri, 8 Nov 2024 19:18:08 -0500 Subject: [PATCH] nit --- .../txs/executor/standard_tx_executor_test.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/vms/platformvm/txs/executor/standard_tx_executor_test.go b/vms/platformvm/txs/executor/standard_tx_executor_test.go index ae6af142c290..950b5d1c3c68 100644 --- a/vms/platformvm/txs/executor/standard_tx_executor_test.go +++ b/vms/platformvm/txs/executor/standard_tx_executor_test.go @@ -3125,20 +3125,19 @@ func TestStandardExecutorRegisterSubnetValidatorTx(t *testing.T) { nil, // chainIDs ) - message := test.message - if message == nil { - message = warpMessage.Bytes() - } registerSubnetValidatorTx, err := wallet.IssueRegisterSubnetValidatorTx( test.balance, pop.ProofOfPossession, - message, + warpMessage.Bytes(), test.builderOptions..., ) require.NoError(err) + unsignedTx := registerSubnetValidatorTx.Unsigned.(*txs.RegisterSubnetValidatorTx) + if test.message != nil { + unsignedTx.Message = test.message + } if test.updateTx != nil { - unsignedTx := registerSubnetValidatorTx.Unsigned.(*txs.RegisterSubnetValidatorTx) test.updateTx(unsignedTx) }