Skip to content

Commit

Permalink
Check if alpha app submitted without specifying any testers.
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur2136 committed Jul 26, 2024
1 parent e1eebce commit 2a8ad14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/cli/src/commands/publish/PublishCliSubmit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ export const publishSubmitCommand = async ({
lastUpdatedVersionOnStore: lastUpdatedVersionOnStore,
} = await loadPublishDetailsWithChecks();

if (alphaTest && solanaMobileDappPublisherPortalDetails.alpha_testers == undefined) {
throw new Error(`Alpha test submission without specifying any testers.\nAdd field alpha_testers in your 'config.yaml' file.`)
}

const sign = ((buf: Buffer) =>
nacl.sign(buf, signer.secretKey)) as SignWithPublisherKeypair;

Expand Down
4 changes: 4 additions & 0 deletions packages/cli/src/commands/publish/PublishCliUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ export const publishUpdateCommand = async ({
lastUpdatedVersionOnStore: lastUpdatedVersionOnStore
} = await loadPublishDetailsWithChecks();

if (alphaTest && solanaMobileDappPublisherPortalDetails.alpha_testers == undefined) {
throw new Error(`Alpha test submission without specifying any testers.\nAdd field alpha_testers in your 'config.yaml' file.`)
}

const sign = ((buf: Buffer) =>
nacl.sign(buf, signer.secretKey)) as SignWithPublisherKeypair;

Expand Down

0 comments on commit 2a8ad14

Please sign in to comment.