Closed mina86 closed 2 weeks ago
@mina86 is attempting to deploy a commit to the coral-xyz Team on Vercel.
A member of the Team first needs to authorize it.
Done.
Yes, if Solana dropped ::
prefix, this as well as declare_id
definitions wouldn’t be necessary in Anchor. Looks like they don’t have appetite for that though.
anchor_lang::solana_program::pubkey macro doesn’t work because it expands to code using ::solana_program::pubkey::Pubkey type (note leading ::). Since programs using anchor-lang crate usually don’t include solana-program dependency, that symbol ends up unresolved.
Introduce anchor_lang::pubkey macro which accesses solana_program via anchor_lang instead. This is analogous to declare_id macro which also had to be repeated in anchor-lang.