Skip to content

Commit

Permalink
update clients
Browse files Browse the repository at this point in the history
  • Loading branch information
kstepanovdev committed Feb 16, 2024
1 parent 5333943 commit 694d46f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
17 changes: 17 additions & 0 deletions clients/js/src/generated/errors/mplBubblegum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,23 @@ export class CreatorDidNotUnverifyError extends ProgramError {
codeToErrorMap.set(0x1797, CreatorDidNotUnverifyError);
nameToErrorMap.set('CreatorDidNotUnverify', CreatorDidNotUnverifyError);

/** InvalidTokenStandard: Minting Bubblegum is allowed only for NonFungible Standard */
export class InvalidTokenStandardError extends ProgramError {
readonly name: string = 'InvalidTokenStandard';

readonly code: number = 0x1798; // 6040

constructor(program: Program, cause?: Error) {
super(
'Minting Bubblegum is allowed only for NonFungible Standard',
program,
cause
);
}
}
codeToErrorMap.set(0x1798, InvalidTokenStandardError);
nameToErrorMap.set('InvalidTokenStandard', InvalidTokenStandardError);

/**
* Attempts to resolve a custom program error from the provided error code.
* @category Errors
Expand Down
3 changes: 3 additions & 0 deletions clients/rust/src/generated/errors/mpl_bubblegum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ pub enum MplBubblegumError {
/// 6039 (0x1797) - Creator did not unverify the metadata
#[error("Creator did not unverify the metadata")]
CreatorDidNotUnverify,
/// 6040 (0x1798) - Minting Bubblegum is allowed only for NonFungible Standard
#[error("Minting Bubblegum is allowed only for NonFungible Standard")]
InvalidTokenStandard,
}

impl solana_program::program_error::PrintProgramError for MplBubblegumError {
Expand Down
5 changes: 5 additions & 0 deletions idls/bubblegum.json
Original file line number Diff line number Diff line change
Expand Up @@ -2269,6 +2269,11 @@
"code": 6039,
"name": "CreatorDidNotUnverify",
"msg": "Creator did not unverify the metadata"
},
{
"code": 6040,
"name": "InvalidTokenStandard",
"msg": "Minting Bubblegum is allowed only for NonFungible Standard"
}
],
"metadata": {
Expand Down

0 comments on commit 694d46f

Please sign in to comment.