Skip to content

Commit c7bea37

Browse files
authored
fix: Update cpi.mdx (solana-foundation#3694)
This commit fixes a comment `AccountMeta::new_readonly(account4_pubkey, true)` should create the metadata for an account marked `non-writable` during an instruction
1 parent eb4396a commit c7bea37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/docs/basics/cpi.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ When building an instruction in Rust, use the following syntax to specify the
280280
AccountMeta::new(account1_pubkey, true), // writable, signer
281281
AccountMeta::new(account2_pubkey, false), // writable, not signer
282282
AccountMeta::new_readonly(account3_pubkey, false), // not writable, not signer
283-
AccountMeta::new_readonly(account4_pubkey, true), // writable, signer
283+
AccountMeta::new_readonly(account4_pubkey, true), // not writable, signer
284284
```
285285

286286
</Tab>

0 commit comments

Comments
 (0)