Quantcast
Channel: Error Code: DeclaredProgramIdMismatch - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 3

Answer by Daniel Pavel for Error Code: DeclaredProgramIdMismatch

$
0
0

FIXED:

Searched for the name of my program in the project directory and found out that it was a mismatch in the Anchor.toml file.

[features]seeds = false[programs.localnet]boync_anchor_program = "EkvnvRY2prU1sJpVLHBk5qsNMXBryaZeMVacRSE1pcZM"

I changed the pubkey to match the one declared in the program code and everything worked.

A clean rebuild did not worked. I wonder how the Anchor.toml file got stuck with a different programId. A bug probably?


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles



Latest Images