Skip to content

Commit

Permalink
Regenerate IDL and clients
Browse files Browse the repository at this point in the history
  • Loading branch information
danenbm committed Mar 8, 2024
1 parent 293db50 commit 0b65656
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
13 changes: 13 additions & 0 deletions clients/js/src/generated/errors/mplCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,19 @@ export class MissingUpdateAuthorityError extends ProgramError {
codeToErrorMap.set(0x14, MissingUpdateAuthorityError);
nameToErrorMap.set('MissingUpdateAuthority', MissingUpdateAuthorityError);

/** MissingNewOwner: Missing new owner */
export class MissingNewOwnerError extends ProgramError {
override readonly name: string = 'MissingNewOwner';

readonly code: number = 0x15; // 21

constructor(program: Program, cause?: Error) {
super('Missing new owner', program, cause);
}
}
codeToErrorMap.set(0x15, MissingNewOwnerError);
nameToErrorMap.set('MissingNewOwner', MissingNewOwnerError);

/**
* 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_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ pub enum MplCoreError {
/// 20 (0x14) - Missing update authority
#[error("Missing update authority")]
MissingUpdateAuthority,
/// 21 (0x15) - Missing new owner
#[error("Missing new owner")]
MissingNewOwner,
}

impl solana_program::program_error::PrintProgramError for MplCoreError {
Expand Down
5 changes: 5 additions & 0 deletions idls/mpl_core.json
Original file line number Diff line number Diff line change
Expand Up @@ -2270,6 +2270,11 @@
"code": 20,
"name": "MissingUpdateAuthority",
"msg": "Missing update authority"
},
{
"code": 21,
"name": "MissingNewOwner",
"msg": "Missing new owner"
}
],
"metadata": {
Expand Down

0 comments on commit 0b65656

Please sign in to comment.