Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discriminator is not implemented for anchor_spl: :token_interface::Mint and anchor_spl::token_interface::TokenAccount #3151

Closed
cxp-13 opened this issue Aug 5, 2024 · 2 comments
Labels
duplicate This issue or pull request already exists spl

Comments

@cxp-13
Copy link

cxp-13 commented Aug 5, 2024

I'm following a tutorial https://www.soldev.app/course/token-extensions-on-chain, github: https://github.com/Unboxed-Software/token22-staking

My dependency situation is

[dependencies]
anchor-lang = "0.30.1"
anchor-spl = "0.30.1"
solana-program = "2.0.4"
spl-token = "6.0.0"
spl-token-2022 = "3.0.4"

When I try to use the token_interface module in anchor_spl, after executing anchor build I get the trait Discriminator is not implemented for anchor_spl: :token_interface::Mint and anchor_spl::token_interface::TokenAccount.

Detailed code at Unboxed-Software/token22-staking#2

@acheroncrypto acheroncrypto added duplicate This issue or pull request already exists spl labels Aug 5, 2024
@acheroncrypto
Copy link
Collaborator

Please see answer #2745 (comment).

There is also going to be a warning for this in the next version (#3133).

@solguru310
Copy link

Thanks for your help.
@acheroncrypto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists spl
Projects
None yet
Development

No branches or pull requests

3 participants