Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
Simplify account creation
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippGackstatter committed May 23, 2024
1 parent b658e6d commit 1d9e9d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/docker-network/tests/nil_payload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ func Test_Payload_Nil_Test(t *testing.T) {
t.Cleanup(cancel)

// create account-1
accounts := d.CreateAccountsFromFaucet(ctx, 1, "account-1")
account1 := accounts[0]
account := d.CreateAccountFromFaucet("account-1")

// Issue a block with a nil payload.
blk := lo.PanicOnErr(account1.Wallet().CreateBasicBlock(ctx, "something", mock.WithPayload(nil)))
blk := lo.PanicOnErr(account.Wallet().CreateBasicBlock(ctx, "something", mock.WithPayload(nil)))
d.SubmitBlock(ctx, blk.ProtocolBlock())

// Wait for the epoch end to ensure the test does not exit early.
d.AwaitEpochFinalized()
}

0 comments on commit 1d9e9d2

Please sign in to comment.