File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ This is a `no_std` crate.
1313Creating a new account:
1414``` rust
1515// This example assumes that the instruction receives a writable signer `payer_info`
16- // and `new_account ` accounts.
16+ // and `new_account_info ` accounts.
1717CreateAccount {
1818 from : payer_info ,
19- to : new_account ,
19+ to : new_account_info ,
2020 lamports : 1_000_000_000 , // 1 SOL
2121 space : 200 , // 200 bytes
2222 owner : & spl_token :: ID ,
@@ -26,10 +26,10 @@ CreateAccount {
2626Performing a transfer of lamports:
2727``` rust
2828// This example assumes that the instruction receives a writable signer `payer_info`
29- // account and a writable `recipient ` account.
29+ // account and a writable `recipient_info ` account.
3030Transfer {
3131 from : payer_info ,
32- to : recipient ,
32+ to : recipient_info ,
3333 lamports : 500_000_000 , // 0.5 SOL
3434}. invoke ()? ;
3535```
You can’t perform that action at this time.
0 commit comments