anchor icon indicating copy to clipboard operation
anchor copied to clipboard

spl: adding metadata account type

Open 0xC0A1 opened this issue 3 years ago • 5 comments

Allows for proper usage of MetadataAccounts.

Example

#[account(
        seeds = [b"metadata", mpl_token_metadata::ID.as_ref(), mint.key().as_ref()],
        seeds::program = mpl_token_metadata::ID,
        bump,
        constraint = nft.uses.as_ref().map_or(false, |u| u.remaining > 0) @ AppError::NFTHasNoUses
)]
pub nft: Account<'info, MetadataAccount>

0xC0A1 avatar Jun 29 '22 18:06 0xC0A1

@kevinrodriguez-io is attempting to deploy a commit to the 200ms Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Jun 29 '22 18:06 vercel[bot]

@armaniferrante @kklas Do you guys know what is that unrelated error in Tests / Core Tests? Also the PR seem to be ready as per the new spec right @samuelvanderwaal ?

0xC0A1 avatar Jul 18 '22 20:07 0xC0A1

Seems like you have a linter error.

Run the following in the repo root directory

$ cargo fmt -- --check
$ cargo clippy --all-targets -- -D warnings
$ cargo test

kklas avatar Jul 18 '22 20:07 kklas

@armaniferrante @kklas @kespinola @samuelvanderwaal Informally re-requesting review because the re-request button isn't working.

0xC0A1 avatar Jul 18 '22 21:07 0xC0A1

@kevinrodriguez-io rebase this branch from master to pull in the clippy error fixes and rerun the tests.

callensm avatar Aug 09 '22 03:08 callensm