Forráskód Böngészése

fix: Update cpi.mdx (#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
elec7rik 4 hónapja
szülő
commit
ae00e514ab
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      docs/content/docs/basics/cpi.mdx

+ 1 - 1
docs/content/docs/basics/cpi.mdx

@@ -280,7 +280,7 @@ When building an instruction in Rust, use the following syntax to specify the
 AccountMeta::new(account1_pubkey, true),           // writable, signer
 AccountMeta::new(account2_pubkey, false),          // writable, not signer
 AccountMeta::new_readonly(account3_pubkey, false), // not writable, not signer
-AccountMeta::new_readonly(account4_pubkey, true),  // writable, signer
+AccountMeta::new_readonly(account4_pubkey, true),  // not writable, signer
 ```
 
 </Tab>