Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<h1 align="center">Name tokenizer</h1>
<br />
<p align="center">
<img width="250" src="https://i.imgur.com/nn7LMNV.png"/>
<img width="250" src="https://v2.sns.id/assets/logo/brand.svg"/>
</p>
<p align="center">
<a href="https://twitter.com/bonfida">
<img src="https://img.shields.io/twitter/url?label=Bonfida&style=social&url=https%3A%2F%2Ftwitter.com%2Fbonfida">
<a href="https://twitter.com/sns">
<img src="https://img.shields.io/twitter/follow/sns?label=SNS&style=social">
</a>
</p>
<br />
Expand Down
6 changes: 3 additions & 3 deletions program/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand All @@ -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 |
Expand Down Expand Up @@ -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 |
Expand Down
1 change: 1 addition & 0 deletions program/src/processor/create_collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions program/src/processor/create_mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down
1 change: 1 addition & 0 deletions program/src/processor/create_nft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;

Expand Down
3 changes: 1 addition & 2 deletions program/src/processor/unverify_nft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)?,
Expand Down