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

Error Code: InvalidAccountVersion. Error Number: 6051. Error Message: Invalid account version. #549

Open
elblimpo opened this issue Apr 21, 2024 · 3 comments

Comments

@elblimpo
Copy link

elblimpo commented Apr 21, 2024

I am able to mint from the CLI however after adding my guard I get the following error when attempting to mint from my frontend.

Not finding mention of Invalid Account Version anywhere.

Thanks for any insight here


Source: Program > CandyGuardProgram [Guard1JwRhJkVH6XZhzoYxeBVQe872VH6QggF4BWmS9g]

Caused By: Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 4: custom program error: 0x17a3

Program Logs:
| Program 11111111111111111111111111111111 invoke [1]
| Program 11111111111111111111111111111111 success
| Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [1]
| Program log: Instruction: InitializeMint
| Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 2967 of 999850 compute units
| Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success
| Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL invoke [1]
| Program log: Create
| Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]
| Program log: Instruction: GetAccountDataSize
| Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 1622 of 991520 compute units
| Program return: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA pQAAAAAAAAA=
| Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success
| Program 11111111111111111111111111111111 invoke [2]
| Program 11111111111111111111111111111111 success
| Program log: Initialize the associated token account
| Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]
| Program log: Instruction: InitializeImmutableOwner
| Program log: Please upgrade to SPL Token 2022 for immutable owner support
| Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 1405 of 984880 compute units
| Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success
| Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]
| Program log: Instruction: InitializeAccount3
| Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 4241 of 981000 compute units
| Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success
| Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL consumed 20407 of 996883 compute units
| Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL success
| Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [1]
| Program log: Instruction: MintTo
| Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 4536 of 976476 compute units
| Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success
| Program Guard1JwRhJkVH6XZhzoYxeBVQe872VH6QggF4BWmS9g invoke [1]
| Program log: Instruction: Mint
| Program log: (Deprecated as of 1.0.0) Use MintV2 instead
| Program log: AnchorError thrown in program/src/instructions/mint.rs:22. Error Code: InvalidAccountVersion. Error Number: 6051. Error Message: Invalid account version.
| Program Guard1JwRhJkVH6XZhzoYxeBVQe872VH6QggF4BWmS9g consumed 20575 of 971940 compute units
| Program Guard1JwRhJkVH6XZhzoYxeBVQe872VH6QggF4BWmS9g failed: custom program error: 0x17a3```
@matangazoadmin
Copy link

I am facing the same issue while minting the nft from my fronted.

@priyanshuveb
Copy link

Facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@priyanshuveb @matangazoadmin @elblimpo and others