-
Notifications
You must be signed in to change notification settings - Fork 42
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
Transaction simulation failed: Error processing Instruction 3: An account required by the instruction is missing #110
Comments
Hey @strickland84 import { findAssociatedTokenPda } from '@metaplex-foundation/mpl-toolbox'
const token = findAssociatedTokenPda(umi, {
mint: mint.publicKey,
owner: umi.identity.publicKey,
tokenProgramId: SPL_TOKEN_2022_PROGRAM_ID,
});
const transaction = transactionBuilder()
.add(createV1(umi, {
mint,
authority: umi.identity,
name: token.name,
symbol: token.symbol,
uri: metaDataUri,
sellerFeeBasisPoints: percentAmount(0),
decimals: token.decimals,
splTokenProgram: SPL_TOKEN_2022_PROGRAM_ID,
tokenOwner: umi.identity.publicKey,
tokenStandard: TokenStandard.Fungible
}))
.add(mintV1(umi, {
mint: mint.publicKey,
authority: umi.identity.publicKey,
token,
tokenOwner: mint.publicKey,
splTokenProgram: SPL_TOKEN_2022_PROGRAM_ID,
tokenStandard: TokenStandard.Fungible
})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to create a Fungible SPL-2022 token with metaplex. I believe I'm missing some key piece of the puzzle here so help would be appreciated. My pseudo-code looks like this:
When I run this function I receive error:
If I skip preflight, I receive error:
Can anyone help enlighten me? What am I missing here? Thanks!
The text was updated successfully, but these errors were encountered: