question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

incorrect program id for instruction

See original GitHub issue

I follow those step but npm run start got:failed with log: incorrect program id for instruction.Why?

incorrect-program-id

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Thearascommented, Dec 24, 2021

Hi! It works fine when using the solana-test-validator compiled from source (https://github.com/solana-labs/solana/tree/master/validator). @fospring @saurabhsharan @vpontis cc

0reactions
fospringcommented, Dec 25, 2021

@fospring hi! How’d you fix this? I’m running into the same issue 😃

I solve it by compile solana-test-validator solana cli from source(master branch) and rm ~/.cache/solana and recompile this program. @vpontis @Thearas

Read more comments on GitHub >

github_iconTop Results From Across the Web

incorrect program id for instruction. Works on devnet but not ...
IncorrectProgramId from the token program means that the owner of the account wasn't the expected spl-token program.
Read more >
Test Validator SPL Associated Token Account ... - GitHub
When creating the associated token account, the token program is failing with "incorrect program id", most likely because the first transaction ...
Read more >
Incorrect program id for instruction - General - Solana
Hi all, I created and deployed the helloworld Program as per: Now, I'am trying to write a JavaScript program to communicate to my...
Read more >
instruction.rs - source - Docs.rs
The program instruction returned an error #[error("generic instruction error")] ... the expected program id #[error("incorrect program id for instruction")] ...
Read more >
spl token - Solana Stack Exchange
Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL failed: incorrect program id for instruction · Ask Question. Asked 4 days ago.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found