Skip to content

Commit

Permalink
Fix truncated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
febo committed Sep 26, 2023
1 parent ca6cd9e commit 96c2b5c
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export type SetAndVerifyCollectionInstructionAccounts = {
merkleTree: PublicKey | Pda;
payer?: Signer;
/**
* This account is checked to be a signer in
* the case of `set_and_verify_collection` where
* we are actually changing the NFT metadata.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export type UnverifyCollectionInstructionAccounts = {
merkleTree: PublicKey | Pda;
payer?: Signer;
/**
* This account is checked to be a signer in
* the case of `set_and_verify_collection` where
* we are actually changing the NFT metadata.
*/
Expand Down
1 change: 1 addition & 0 deletions clients/js/src/generated/instructions/verifyCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export type VerifyCollectionInstructionAccounts = {
merkleTree: PublicKey | Pda;
payer?: Signer;
/**
* This account is checked to be a signer in
* the case of `set_and_verify_collection` where
* we are actually changing the NFT metadata.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pub struct SetAndVerifyCollection {
pub merkle_tree: solana_program::pubkey::Pubkey,

pub payer: solana_program::pubkey::Pubkey,
/// This account is checked to be a signer in
/// the case of `set_and_verify_collection` where
/// we are actually changing the NFT metadata.
pub tree_creator_or_delegate: (solana_program::pubkey::Pubkey, bool),
Expand Down Expand Up @@ -229,6 +230,7 @@ impl SetAndVerifyCollectionBuilder {
self.payer = Some(payer);
self
}
/// This account is checked to be a signer in
/// the case of `set_and_verify_collection` where
/// we are actually changing the NFT metadata.
#[inline(always)]
Expand Down Expand Up @@ -439,6 +441,7 @@ pub struct SetAndVerifyCollectionCpiAccounts<'a, 'b> {
pub merkle_tree: &'b solana_program::account_info::AccountInfo<'a>,

pub payer: &'b solana_program::account_info::AccountInfo<'a>,
/// This account is checked to be a signer in
/// the case of `set_and_verify_collection` where
/// we are actually changing the NFT metadata.
pub tree_creator_or_delegate: (&'b solana_program::account_info::AccountInfo<'a>, bool),
Expand Down Expand Up @@ -479,6 +482,7 @@ pub struct SetAndVerifyCollectionCpi<'a, 'b> {
pub merkle_tree: &'b solana_program::account_info::AccountInfo<'a>,

pub payer: &'b solana_program::account_info::AccountInfo<'a>,
/// This account is checked to be a signer in
/// the case of `set_and_verify_collection` where
/// we are actually changing the NFT metadata.
pub tree_creator_or_delegate: (&'b solana_program::account_info::AccountInfo<'a>, bool),
Expand Down Expand Up @@ -762,6 +766,7 @@ impl<'a, 'b> SetAndVerifyCollectionCpiBuilder<'a, 'b> {
self.instruction.payer = Some(payer);
self
}
/// This account is checked to be a signer in
/// the case of `set_and_verify_collection` where
/// we are actually changing the NFT metadata.
#[inline(always)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub struct UnverifyCollection {
pub merkle_tree: solana_program::pubkey::Pubkey,

pub payer: solana_program::pubkey::Pubkey,
/// This account is checked to be a signer in
/// the case of `set_and_verify_collection` where
/// we are actually changing the NFT metadata.
pub tree_creator_or_delegate: solana_program::pubkey::Pubkey,
Expand Down Expand Up @@ -226,6 +227,7 @@ impl UnverifyCollectionBuilder {
self.payer = Some(payer);
self
}
/// This account is checked to be a signer in
/// the case of `set_and_verify_collection` where
/// we are actually changing the NFT metadata.
#[inline(always)]
Expand Down Expand Up @@ -429,6 +431,7 @@ pub struct UnverifyCollectionCpiAccounts<'a, 'b> {
pub merkle_tree: &'b solana_program::account_info::AccountInfo<'a>,

pub payer: &'b solana_program::account_info::AccountInfo<'a>,
/// This account is checked to be a signer in
/// the case of `set_and_verify_collection` where
/// we are actually changing the NFT metadata.
pub tree_creator_or_delegate: &'b solana_program::account_info::AccountInfo<'a>,
Expand Down Expand Up @@ -469,6 +472,7 @@ pub struct UnverifyCollectionCpi<'a, 'b> {
pub merkle_tree: &'b solana_program::account_info::AccountInfo<'a>,

pub payer: &'b solana_program::account_info::AccountInfo<'a>,
/// This account is checked to be a signer in
/// the case of `set_and_verify_collection` where
/// we are actually changing the NFT metadata.
pub tree_creator_or_delegate: &'b solana_program::account_info::AccountInfo<'a>,
Expand Down Expand Up @@ -751,6 +755,7 @@ impl<'a, 'b> UnverifyCollectionCpiBuilder<'a, 'b> {
self.instruction.payer = Some(payer);
self
}
/// This account is checked to be a signer in
/// the case of `set_and_verify_collection` where
/// we are actually changing the NFT metadata.
#[inline(always)]
Expand Down
5 changes: 5 additions & 0 deletions clients/rust/src/generated/instructions/verify_collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub struct VerifyCollection {
pub merkle_tree: solana_program::pubkey::Pubkey,

pub payer: solana_program::pubkey::Pubkey,
/// This account is checked to be a signer in
/// the case of `set_and_verify_collection` where
/// we are actually changing the NFT metadata.
pub tree_creator_or_delegate: solana_program::pubkey::Pubkey,
Expand Down Expand Up @@ -224,6 +225,7 @@ impl VerifyCollectionBuilder {
self.payer = Some(payer);
self
}
/// This account is checked to be a signer in
/// the case of `set_and_verify_collection` where
/// we are actually changing the NFT metadata.
#[inline(always)]
Expand Down Expand Up @@ -427,6 +429,7 @@ pub struct VerifyCollectionCpiAccounts<'a, 'b> {
pub merkle_tree: &'b solana_program::account_info::AccountInfo<'a>,

pub payer: &'b solana_program::account_info::AccountInfo<'a>,
/// This account is checked to be a signer in
/// the case of `set_and_verify_collection` where
/// we are actually changing the NFT metadata.
pub tree_creator_or_delegate: &'b solana_program::account_info::AccountInfo<'a>,
Expand Down Expand Up @@ -467,6 +470,7 @@ pub struct VerifyCollectionCpi<'a, 'b> {
pub merkle_tree: &'b solana_program::account_info::AccountInfo<'a>,

pub payer: &'b solana_program::account_info::AccountInfo<'a>,
/// This account is checked to be a signer in
/// the case of `set_and_verify_collection` where
/// we are actually changing the NFT metadata.
pub tree_creator_or_delegate: &'b solana_program::account_info::AccountInfo<'a>,
Expand Down Expand Up @@ -747,6 +751,7 @@ impl<'a, 'b> VerifyCollectionCpiBuilder<'a, 'b> {
self.instruction.payer = Some(payer);
self
}
/// This account is checked to be a signer in
/// the case of `set_and_verify_collection` where
/// we are actually changing the NFT metadata.
#[inline(always)]
Expand Down
3 changes: 3 additions & 0 deletions idls/bubblegum.json
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@
"isMut": false,
"isSigner": false,
"docs": [
"This account is checked to be a signer in",
"the case of `set_and_verify_collection` where",
"we are actually changing the NFT metadata."
]
Expand Down Expand Up @@ -599,6 +600,7 @@
"isMut": false,
"isSigner": false,
"docs": [
"This account is checked to be a signer in",
"the case of `set_and_verify_collection` where",
"we are actually changing the NFT metadata."
]
Expand Down Expand Up @@ -735,6 +737,7 @@
"isMut": false,
"isSigner": false,
"docs": [
"This account is checked to be a signer in",
"the case of `set_and_verify_collection` where",
"we are actually changing the NFT metadata."
]
Expand Down
3 changes: 2 additions & 1 deletion programs/bubblegum/program/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ pub struct CollectionVerification<'info> {
/// CHECK: This account is modified in the downstream program
pub merkle_tree: UncheckedAccount<'info>,
pub payer: Signer<'info>,
/// CHECK: This account is checked to be a signer in
/// CHECK: This account is checked in the instruction
/// This account is checked to be a signer in
/// the case of `set_and_verify_collection` where
/// we are actually changing the NFT metadata.
pub tree_delegate: UncheckedAccount<'info>,
Expand Down

0 comments on commit 96c2b5c

Please sign in to comment.