Skip to content

Commit

Permalink
Print requestId on developer submission window.
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur2136 committed Jul 29, 2024
1 parent 2aac144 commit 56aaa12
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion packages/core/src/publish/dapp_publisher_portal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,23 @@ export const submitRequestToSolanaDappPublisherPortal = async (
if (!dryRun) {
await axios(config)
.then((response) => {
console.info(`dApp publisher portal response:`, response.data);
const isAlphaObject = request.fields.find((obj: { objectTypeId: string, name: string; value: string}) => {
return obj.name === TICKET_PROPERTY_ALPHA_TEST
})

if (isAlphaObject !== undefined && isAlphaObject.value) {
const requestUniqueId = request.fields.find((obj: { objectTypeId: string, name: string; value: string}) => {
return obj.name === TICKET_PROPERTY_REQUEST_UNIQUE_ID
}).value
console.log(
`Your alpha submission has been received.\n` +
`It will not be reviewed or published to users.\n` +
`Use nonce '${requestUniqueId}' to launch alpha app.\n` +
`This can only be used on devices for which the genesis token was listed in your 'config.yaml'`
)
} else {
console.info(`dApp publisher portal response:`, response.data);
}
})
.catch((error) => {
if (error.response) {
Expand Down

0 comments on commit 56aaa12

Please sign in to comment.