Created
September 14, 2021 10:02
-
-
Save DougAnderson444/e285709c4670b992f185ae32a1a13204 to your computer and use it in GitHub Desktop.
Value for the declare_id field of the Solana Anchor program
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ref: https://discord.com/channels/739225212658122886/838515957042774038/886918683203625001 | |
regarding the hardcoded value in the declare_id field of the rust program, the workflow look like this: | |
1. build only with placeholder ID | |
2. solana address -k <the-program-keypair-in-target-deploy-folder> | |
3. Update lib.rs | |
4. build AND deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
But also:
coral-xyz/anchor#695
They might add a macro for this by the time you read this...