소스 검색

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 달 전
부모
커밋
ae00e514ab
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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>