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

'Program log: Error: Invalid instruction' is happen while caling createInitializeGroupInstruction #1

Open
Lu-Derik opened this issue Sep 5, 2024 · 1 comment

Comments

@Lu-Derik
Copy link

Lu-Derik commented Sep 5, 2024

Hi,

I received 'Program log: Error: Invalid instruction' while caling createInitializeGroupInstruction. And someone said, The token group extension in token-2022 has not been deployed yet.

Refer to https://solana.stackexchange.com/questions/14740/anchor-spl-token-group-initialize-invalid-instruction

This is error information.

/home/ldru/solana/solana-lab-group-member/node_modules/@solana/web3.js/src/connection.ts:6043
throw new SendTransactionError({
^

SendTransactionError: Simulation failed.
Message: Transaction simulation failed: Error processing Instruction 4: custom program error: 0xc.
Logs:
[
"Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb consumed 906 of 1199009 compute units",
"Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb success",
"Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb invoke [1]",
"Program log: Instruction: InitializeMint",
"Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb consumed 2260 of 1198103 compute units",
"Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb success",
"Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb invoke [1]",
"Program log: Error: Invalid instruction",
"Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb consumed 712 of 1195843 compute units",
"Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb failed: custom program error: 0xc"
].
Catch the SendTransactionError and call getLogs() on it for full details.
at Connection.sendEncodedTransaction (/home/ldru/solana/solana-lab-group-member/node_modules/@solana/web3.js/src/connection.ts:6043:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at Connection.sendRawTransaction (/home/ldru/solana/solana-lab-group-member/node_modules/@solana/web3.js/src/connection.ts:5999:20)
at Connection.sendTransaction (/home/ldru/solana/solana-lab-group-member/node_modules/@solana/web3.js/src/connection.ts:5987:12)
at sendAndConfirmTransaction (/home/ldru/solana/solana-lab-group-member/node_modules/@solana/web3.js/src/utils/send-and-confirm-transaction.ts:36:21)
at async createTokenGroup (file:///home/ldru/solana/solana-lab-group-member/[eval1]:91:22)
at async file:///home/ldru/solana/solana-lab-group-member/[eval1]:224:17 {
signature: '',
transactionMessage: 'Transaction simulation failed: Error processing Instruction 4: custom program error: 0xc',
transactionLogs: [
'Program 11111111111111111111111111111111 invoke [1]',
'Program 11111111111111111111111111111111 success',
'Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb invoke [1]',
'Program log: GroupPointerInstruction::Initialize',
'Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb consumed 841 of 1199850 compute units',
'Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb success',
'Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb invoke [1]',
'Program log: MetadataPointerInstruction::Initialize',
'Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb consumed 906 of 1199009 compute units',
'Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb success',
'Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb invoke [1]',
'Program log: Instruction: InitializeMint',
'Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb consumed 2260 of 1198103 compute units',
'Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb success',
'Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb invoke [1]',
'Program log: Error: Invalid instruction',
'Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb consumed 712 of 1195843 compute units',
'Program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb failed: custom program error: 0xc'
]
}

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

2 participants
@Lu-Derik and others