Skip to content

Commit

Permalink
rejen JS api
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelvanderwaal committed Jul 6, 2023
1 parent 7e5483a commit e4ba9f2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fixed-price-sale/js/idl/fixed_price_sale.json
Original file line number Diff line number Diff line change
Expand Up @@ -1355,6 +1355,11 @@
"code": 6044,
"name": "EditionMarkerFull",
"msg": "No available editions in edition marker"
},
{
"code": 6045,
"name": "InvalidEditionMarkerAccount",
"msg": "Invalid edition marker"
}
],
"metadata": {
Expand Down
23 changes: 23 additions & 0 deletions fixed-price-sale/js/src/generated/errors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,29 @@ export class EditionMarkerFullError extends Error {
createErrorFromCodeLookup.set(0x179c, () => new EditionMarkerFullError());
createErrorFromNameLookup.set('EditionMarkerFull', () => new EditionMarkerFullError());

/**
* InvalidEditionMarkerAccount: 'Invalid edition marker'
*
* @category Errors
* @category generated
*/
export class InvalidEditionMarkerAccountError extends Error {
readonly code: number = 0x179d;
readonly name: string = 'InvalidEditionMarkerAccount';
constructor() {
super('Invalid edition marker');
if (typeof Error.captureStackTrace === 'function') {
Error.captureStackTrace(this, InvalidEditionMarkerAccountError);
}
}
}

createErrorFromCodeLookup.set(0x179d, () => new InvalidEditionMarkerAccountError());
createErrorFromNameLookup.set(
'InvalidEditionMarkerAccount',
() => new InvalidEditionMarkerAccountError(),
);

/**
* Attempts to resolve a custom program error from the provided error code.
* @category Errors
Expand Down

0 comments on commit e4ba9f2

Please sign in to comment.