Closed cryptopapi997 closed 1 month ago
@cryptopapi997 is attempting to deploy a commit to the coral-xyz Team on Vercel.
A member of the Team first needs to authorize it.
wdyt @acheroncrypto
Thanks for merging! Do you already have an ETA for the next patch release that will include these?
ETA is early next month, but you can already use it from git
if you don't publish crates:
[dependencies]
anchor-lang = { git = "https://github.com/coral-xyz/anchor", rev = "b76d1bf" }
and in Anchor.toml
:
anchor_version = "0.30.0-b76d1bf"
When using optional accounts with
declare_program!
the generated code results in the account being set tocrate::ID
when the account isNone
. This means we get two scenarios:crate::ID
is that of the calling program.crate::ID
isn't defined anywhere.Both of these are the wrong thing to happen, but the fix is easy - just pass in
super::__ID
instead, which is what this PR does.