Skip to content

Commit

Permalink
Merge branch 'implement-acp-77-disable-subnet-validator-tx' into impl…
Browse files Browse the repository at this point in the history
…ement-acp-77-logging
  • Loading branch information
StephenButtolph authored Nov 9, 2024
2 parents f1b4a09 + e65337c commit 7b5e10e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions vms/platformvm/txs/executor/standard_tx_executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 7b5e10e

Please sign in to comment.