diff --git a/README.md b/README.md index 68e34ec..c18fab7 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@

Name tokenizer


- +

- - + +


diff --git a/program/src/instruction.rs b/program/src/instruction.rs index 33e4413..df8abe7 100644 --- a/program/src/instruction.rs +++ b/program/src/instruction.rs @@ -21,7 +21,7 @@ pub enum ProgramInstruction { /// | 3 | ❌ | ❌ | The SPL token program account | /// | 4 | ❌ | ❌ | The system program account | /// | 5 | ❌ | ❌ | Rent sysvar account | - /// | 6 | ❌ | ❌ | Fee payer account | + /// | 6 | ✅ | ✅ | Fee payer account | CreateMint, /// Create a verified collection /// @@ -32,7 +32,7 @@ pub enum ProgramInstruction { /// | 2 | ✅ | ❌ | The metadata account | /// | 3 | ❌ | ❌ | The central state account | /// | 4 | ✅ | ❌ | Token account of the central state to hold the master edition | - /// | 5 | ❌ | ❌ | The fee payer account | + /// | 5 | ✅ | ✅ | The fee payer account | /// | 6 | ❌ | ❌ | The SPL token program account | /// | 7 | ❌ | ❌ | The metadata program account | /// | 8 | ❌ | ❌ | The system program account | @@ -107,7 +107,7 @@ pub enum ProgramInstruction { /// | 2 | ❌ | ❌ | Collection | /// | 3 | ❌ | ❌ | Mint of the collection | /// | 4 | ✅ | ❌ | The central state account | - /// | 5 | ✅ | ✅ | The fee payer account | + /// | 5 | ❌ | ❌ | The fee payer account | /// | 6 | ❌ | ❌ | The metadata program account | /// | 7 | ❌ | ❌ | The system program account | /// | 8 | ❌ | ❌ | Rent sysvar account | diff --git a/program/src/processor/create_collection.rs b/program/src/processor/create_collection.rs index fe14b8c..8f1156d 100644 --- a/program/src/processor/create_collection.rs +++ b/program/src/processor/create_collection.rs @@ -63,6 +63,7 @@ pub struct Accounts<'a, T> { pub central_state_nft_ata: &'a T, /// The fee payer account + #[cons(writable, signer)] pub fee_payer: &'a T, /// The SPL token program account diff --git a/program/src/processor/create_mint.rs b/program/src/processor/create_mint.rs index de7ccd1..6ba9ba4 100644 --- a/program/src/processor/create_mint.rs +++ b/program/src/processor/create_mint.rs @@ -47,6 +47,7 @@ pub struct Accounts<'a, T> { pub rent_account: &'a T, /// Fee payer account + #[cons(writable, signer)] pub fee_payer: &'a T, } diff --git a/program/src/processor/create_nft.rs b/program/src/processor/create_nft.rs index d1ca8f0..b98f0a0 100644 --- a/program/src/processor/create_nft.rs +++ b/program/src/processor/create_nft.rs @@ -165,6 +165,7 @@ impl<'a, 'b: 'a> Accounts<'a, AccountInfo<'b>> { // Check signer check_signer(accounts.name_owner)?; + check_signer(accounts.fee_payer)?; #[cfg(not(feature = "devnet"))] check_signer(accounts.metadata_signer)?; diff --git a/program/src/processor/unverify_nft.rs b/program/src/processor/unverify_nft.rs index 5724c3b..988092d 100644 --- a/program/src/processor/unverify_nft.rs +++ b/program/src/processor/unverify_nft.rs @@ -45,7 +45,6 @@ pub struct Accounts<'a, T> { pub central_state: &'a T, /// The fee payer account - #[cons(writable, signer)] pub fee_payer: &'a T, /// The metadata program account @@ -72,7 +71,7 @@ impl<'a, 'b: 'a> Accounts<'a, AccountInfo<'b>> { collection_metadata: next_account_info(accounts_iter)?, collection_mint: next_account_info(accounts_iter)?, central_state: next_account_info(accounts_iter)?, - fee_payer: next_account_info(accounts_iter)?, + fee_payer: next_account_info(accounts_iter)?, // Unused but keeping it for backward compatibility metadata_program: next_account_info(accounts_iter)?, system_program: next_account_info(accounts_iter)?, rent_account: next_account_info(accounts_iter)?,