Skip to content

Commit

Permalink
add description for createMessages and createCoins
Browse files Browse the repository at this point in the history
  • Loading branch information
nedsalk committed May 15, 2024
1 parent fd7eb1e commit 15e3c1d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/account/src/test-utils/wallet-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,18 @@ export class WalletConfig {
};
}

/**
* Create messages for the wallets in the format that the chain expects.
*/
private static createMessages(wallets: WalletUnlocked[], messages: TestMessage[]) {
return messages
.map((msg) => wallets.map((wallet) => msg.toChainMessage(wallet.address)))
.flatMap((x) => x);
}

/**
* Create coins for the wallets in the format that the chain expects.
*/
private static createCoins(
wallets: WalletUnlocked[],
baseAssetId: string,
Expand Down

0 comments on commit 15e3c1d

Please sign in to comment.