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

Project 8 - Error during create vesting account #16

Open
Kavit-Patel opened this issue Nov 24, 2024 · 2 comments
Open

Project 8 - Error during create vesting account #16

Kavit-Patel opened this issue Nov 24, 2024 · 2 comments

Comments

@Kavit-Patel
Copy link

Kavit-Patel commented Nov 24, 2024

Error Code: DeclaredProgramIdMismatch. Error Number: 4100. Error Message: The declared program id does not match the actual program id.
error
I have done everything to correct it but same error occurs .. i dont know why ? even after trying everything i cloned your project from github and without doing any extra code just installed dependencies and deployed .. and then try to create vesting account but same to same error

@AbhisekBasu1
Copy link

When you're running anchor build in the anchor folder, you'll get a program ID in your lib.rs. That's the program ID you should use everywhere, so it involves copy pasting that program ID in the correct places (as shown in the tutorial), before running it. Check if this fixes it.

@Kavit-Patel
Copy link
Author

Thanks bro.
But for me I have synced program ID correctly though out the whole project.

But now I have identified the problem recently, and now project works correctly .
The problem was I had deployed program using
anchor deploy --provider.cluster localnet
instead I should use anchor deploy.

And now this error gone .

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