Skip to content

Commit

Permalink
guard -> validate
Browse files Browse the repository at this point in the history
  • Loading branch information
nedsalk committed May 15, 2024
1 parent 8a04be8 commit fd7eb1e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/account/src/test-utils/wallet-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ export class WalletConfig {

constructor(baseAssetId: string, config: WalletConfigOptions) {
const BASE_ASSET_ID = baseAssetId.startsWith('0x') ? baseAssetId : `0x${baseAssetId}`;
WalletConfig.guard(config);
WalletConfig.validate(config);

this.options = config;

const { assets, coinsPerAsset, amountPerCoin, messages } = this.options;

this.wallets = this.generateWallets();

this.initialState = {
messages: WalletConfig.createMessages(this.wallets, messages),
coins: WalletConfig.createCoins(
Expand Down Expand Up @@ -133,7 +134,7 @@ export class WalletConfig {
return coins;
}

private static guard({
private static validate({
count: wallets,
assets,
coinsPerAsset,
Expand Down

0 comments on commit fd7eb1e

Please sign in to comment.