Updates documentation around what needs to be passed in CPI. (#21633)
This commit is contained in:
committed by
GitHub
parent
3dab1e711d
commit
6f3f6eddb2
@ -54,12 +54,8 @@ mod acme {
|
||||
|
||||
`invoke()` is built into Solana's runtime and is responsible for routing the
|
||||
given instruction to the `token` program via the instruction's `program_id`
|
||||
field.
|
||||
|
||||
Note that `invoke` requires the caller to pass all the accounts required by the
|
||||
instruction being invoked. This means that both the executable account (the
|
||||
ones that matches the instruction's program id) and the accounts passed to the
|
||||
instruction processor.
|
||||
field. The caller has to pass all the accounts required by the instruction
|
||||
being invoked, except for the executable account (with the key `program_id`).
|
||||
|
||||
Before invoking `pay()`, the runtime must ensure that `acme` didn't modify any
|
||||
accounts owned by `token`. It does this by applying the runtime's policy to the
|
||||
|
Reference in New Issue
Block a user