You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is similar to #436 — which was fixed by #501 — however, the fix only includes programs that are cloned using the --clone-upgradeable-program option. If an account is cloned using --clone — which is what Anchor does — the problem of not being able to interact with the programs still persist. Anchor can switch to use --clone-upgradeable-program but it will still be broken on all existing Anchor versions.
Solution
Always set deployment slot of cloned program data accounts to 0.
The text was updated successfully, but these errors were encountered:
The solution requires special-casing program data accounts during --clone, which is redundant because that's special-cased with --clone-upgradeable-program, and people should use that instead.
On the flipside, I can't think of a situation where someone would actually want the deployment slot for a program on their solana-test-validator. If they do need it, they can setup more specific test fixtures for their use-case. So yep, I think we can include this!
At the same time, Anchor should probably switch to --clone-upgradeable-program.
Problem
This is similar to #436 — which was fixed by #501 — however, the fix only includes programs that are cloned using the
--clone-upgradeable-program
option. If an account is cloned using--clone
— which is what Anchor does — the problem of not being able to interact with the programs still persist. Anchor can switch to use--clone-upgradeable-program
but it will still be broken on all existing Anchor versions.Solution
Always set deployment slot of cloned program data accounts to
0
.The text was updated successfully, but these errors were encountered: