We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Following instruction is to mint a NFT but transaction is failed with the error messages attached down below. If Verified: value in the Creators: section is changed to false, minting nft is successful without any problem. Please advise. It was tested on devnet. tx, err := types.NewTransaction(types.NewTransactionParam{ Signers: []types.Account{mintKey, payerKey}, Message: types.NewMessage(types.NewMessageParam{ FeePayer: payerKey.Publickey, RecentBlockhash: recentBlockhashResponse.Blockhash, Instructions: []types.Instruction{ system.CreateAccount(system.CreateAccountParam{ From: payerKey.Publickey, New: mintKey.Publickey, Owner: common.TokenProgramID, Lamports: mintAccountRent, Space: token.MintAccountSize, }), token.InitializeMint(token.InitializeMintParam{ Decimals: 0, Mint: mintKey.Publickey, MintAuth: payerKey.Publickey, FreezeAuth: nil, }), token_metadata.CreateMetadataAccountV3(token_metadata.CreateMetadataAccountV3Param{ Metadata: tokenMetadataPubkey, Mint: mintKey.Publickey, MintAuthority: payerKey.Publickey, Payer: payerKey.Publickey, UpdateAuthority: common.PublicKey{}, UpdateAuthorityIsSigner: false, IsMutable: false, Data: token_metadata.DataV2{ Name: nftName, Symbol: nftSymbol, Uri: nftUri, SellerFeeBasisPoints: 500, Creators: &[]token_metadata.Creator{ { Address: payerKey.Publickey, Verified: true, Share: 100, }, }, Collection: nil, Uses: nil, }, CollectionDetails: nil, }), associated_token_account.CreateAssociatedTokenAccount(associated_token_account.CreateAssociatedTokenAccountParam{ Funder: payerKey.Publickey, Owner: payerKey.Publickey, Mint: mintKey.Publickey, AssociatedTokenAccount: ata, }), token.MintTo(token.MintToParam{ Mint: mintKey.Publickey, To: ata, Auth: payerKey.Publickey, Amount: 1, }), }, }), }) sig, err := solClient.SendTransaction(context.Background(), tx) ===== Error Message ==== {"code":-32002,"message":"Transaction simulation failed: Error processing Instruction 2: custom program error: 0x36","data":{"accounts":null,"err":{"InstructionError":[2,{"Custom":54}]},"innerInstructions":null,"logs":["Program 11111111111111111111111111111111 invoke [1]","Program 11111111111111111111111111111111 success","Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [1]","Program log: Instruction: InitializeMint","Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 2919 of 999850 compute units","Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success","Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s invoke [1]","Program log: IX: Create Metadata Accounts v3","Program 11111111111111111111111111111111 invoke [2]","Program 11111111111111111111111111111111 success","Program log: Allocate space for the account","Program 11111111111111111111111111111111 invoke [2]","Program 11111111111111111111111111111111 success","Program log: Assign the account to the owning program","Program 11111111111111111111111111111111 invoke [2]","Program 11111111111111111111111111111111 success","Program log: You cannot unilaterally verify another creator, they must sign","Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s consumed 27668 of 996931 compute units","Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s failed: custom program error: 0x36"],"replacementBlockhash":null,"returnData":null,"unitsConsumed":30737}}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: