Context: lifetime may not live long enough
I’m using Rust since a few days and want to optimize a smart contract I’m working on (Built with Anchor). I’m facing an issue regarding context lifetime.
Reference to mint is not recognized in Struct creation while trying to create an NFT in Anchor
I’ve tried to follow and complete the following guide to create an NFT through Anchor, but after finishing writing the code following each step throroughly following error while compiling:
TokenAccount doesn’t implement Discriminator
I am currently diving into programming on the Solana blockchain and started a very basic program with anchor. In the documentation they have the following example – see “Using Account<‘a, T> with non-anchor program accounts“: