Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed May 15, 2024
1 parent 6736e01 commit 8bb43d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export interface BaseConfig {
accounts?: { // account configuration (used for deploy command)
deploy?: string; // account to deploy widgets to
signer?: string; // account to sign transactions (such as deployment)
dev?: string;
};
ipfs?: { // ipfs configuration
gateway?: string; // ipfs gateway to use
Expand Down Expand Up @@ -43,6 +44,7 @@ export const DEFAULT_CONFIG = {
const accountConfigSchema = Joi.object({
deploy: Joi.string().allow(null),
signer: Joi.string().allow(null),
dev: Joi.string().allow(null),
});

const baseConfigSchema = Joi.object({
Expand Down Expand Up @@ -99,6 +101,7 @@ function fillInAccounts(config: AppConfig): AppConfig {
accounts: {
deploy: config.accounts?.deploy || config.account,
signer: config.accounts?.signer || config.account,
dev: config.accounts?.dev || config.account,
},
};
}
Expand Down

0 comments on commit 8bb43d6

Please sign in to comment.