This lesson focuses on how to call another program from within your Solana Anchor program. We are using cross program invocations (CPIs).
In the end there is a segment about Errors in Anchor as well.
Source code from this lesson:
[ Ссылка ]
Dev course lesson:
[ Ссылка ]
Chapters:
0:00 Intro
0:53 TL;DR
2:27 CPI review
3:39 Anchor CPIs
5:26 Excursion: remaining accounts
7:53 back to Anchor CPIs
11:20 creating a new Anchor program
14:40 importing dependencies of the other program
17:10 building the CPI
23:30 invoking the other program though CPI
25:10 invoking a non-Anchor program
28:40 manually building a cpi
30:58 Anchor instruction descriminator
34:15 Anchor Errors
32:18 CPI comparison Anchor vs native
39:03 Rust basics: returning
39:53 Errors with require
45:14 Wrap up
Join the discord
[ Ссылка ]
More links:
[ Ссылка ]
Thanks for watching!
solandy.sol
Ещё видео!