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

Commit 48ce234

Browse files
committed
Add comments
1 parent 95e9802 commit 48ce234

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: tools/docker-network/tests/dockerframework.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ func (d *DockerTestFramework) DelegateToValidator(from *Account, validator *Node
430430
return delegationOutput.StartEpoch
431431
}
432432

433-
// AllotManaTo allots amount of mana from one account to another.
433+
// AllotManaTo requests faucet funds then uses it to allots mana from one account to another.
434434
func (d *DockerTestFramework) AllotManaTo(from *Account, to *Account, manaToAllot iotago.Mana) {
435435
// requesting faucet funds for allotment
436436
ctx := context.TODO()
@@ -480,6 +480,7 @@ func (d *DockerTestFramework) AllotManaTo(from *Account, to *Account, manaToAllo
480480
d.AwaitTransactionPayloadAccepted(ctx, blkID)
481481
}
482482

483+
// CreateNativeToken request faucet funds then use it to create native token for the account, and returns the updated Account.
483484
func (d *DockerTestFramework) CreateNativeToken(from *Account) (updatedAccount *Account) {
484485
// requesting faucet funds for native token creation
485486
ctx := context.TODO()
@@ -553,6 +554,10 @@ func (d *DockerTestFramework) CreateNativeToken(from *Account) (updatedAccount *
553554
}
554555

555556
d.AwaitTransactionPayloadAccepted(ctx, blkID)
557+
558+
// wait for the account to be committed
559+
d.AwaitCommitment(blkID.Slot())
560+
556561
d.AssertIndexerAccount(updatedAccount)
557562
d.AssertIndexerFoundry(foundryID)
558563

0 commit comments

Comments
 (0)