Skip to content

Commit

Permalink
Fix shank annotation (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
febo committed Nov 28, 2023
1 parent 8754fb7 commit 3fa9020
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export function bubblegumSetCollectionSize(
},
collectionAuthority: {
index: 1,
isWritable: true as boolean,
isWritable: false as boolean,
value: input.collectionAuthority ?? null,
},
collectionMint: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl BubblegumSetCollectionSize {
self.collection_metadata,
false,
));
accounts.push(solana_program::instruction::AccountMeta::new(
accounts.push(solana_program::instruction::AccountMeta::new_readonly(
self.collection_authority,
true,
));
Expand Down Expand Up @@ -96,7 +96,7 @@ pub struct BubblegumSetCollectionSizeInstructionArgs {
/// ### Accounts:
///
/// 0. `[writable]` collection_metadata
/// 1. `[writable, signer]` collection_authority
/// 1. `[signer]` collection_authority
/// 2. `[]` collection_mint
/// 3. `[signer]` bubblegum_signer
/// 4. `[optional]` collection_authority_record
Expand Down Expand Up @@ -297,7 +297,7 @@ impl<'a, 'b> BubblegumSetCollectionSizeCpi<'a, 'b> {
*self.collection_metadata.key,
false,
));
accounts.push(solana_program::instruction::AccountMeta::new(
accounts.push(solana_program::instruction::AccountMeta::new_readonly(
*self.collection_authority.key,
true,
));
Expand Down Expand Up @@ -359,7 +359,7 @@ impl<'a, 'b> BubblegumSetCollectionSizeCpi<'a, 'b> {
/// ### Accounts:
///
/// 0. `[writable]` collection_metadata
/// 1. `[writable, signer]` collection_authority
/// 1. `[signer]` collection_authority
/// 2. `[]` collection_mint
/// 3. `[signer]` bubblegum_signer
/// 4. `[optional]` collection_authority_record
Expand Down
2 changes: 1 addition & 1 deletion idls/token_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2495,7 +2495,7 @@
},
{
"name": "collectionAuthority",
"isMut": true,
"isMut": false,
"isSigner": true,
"docs": [
"Collection Update authority"
Expand Down
2 changes: 1 addition & 1 deletion programs/token-metadata/program/src/instruction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ pub enum MetadataInstruction {
/// Set size of an existing collection using CPI from the Bubblegum program. This is how
/// collection size is incremented and decremented for compressed NFTs.
#[account(0, writable, name="collection_metadata", desc="Collection Metadata account")]
#[account(1, signer, writable, name="collection_authority", desc="Collection Update authority")]
#[account(1, signer, name="collection_authority", desc="Collection Update authority")]
#[account(2, name="collection_mint", desc="Mint of the Collection")]
#[account(3, signer, name="bubblegum_signer", desc="Signing PDA of Bubblegum program")]
#[account(4, optional, name="collection_authority_record", desc="Collection Authority Record PDA")]
Expand Down

0 comments on commit 3fa9020

Please sign in to comment.