This time we have a closer look into cross program invocations (CPIs) in Anchor. Specifically we want to do CPIs with the program as a signer.
Then we learned some more about the architecture of Anchor and what is and is not possible.
Sidenote: don't use UncheckedAccounts. (especially when you expect them to be a signer)
Source code:
[ Ссылка ]
Timestamps:
0:00 Introduction
1:16 CPIs with signer seeds in Anchor
7:40 regular CPI with signer seeds
8:10 borrowing in Rust
9:50 debugging the cNFT example
14:36 trials on CPI calls with signer seeds
20:20 finding limitations of Anchor
23:57 a suggestion for Metaplex
24:33 conclusion
--
Join the discord
[ Ссылка ]
More links:
[ Ссылка ]
Thanks for watching!
solandy.sol
Ещё видео!