remove inaccurate comment about system instructions (#31829)

Update lib.rs
This commit is contained in:
alpharush 2023-05-26 15:54:44 -05:00 committed by GitHub
parent 688fa0bf0f
commit 588172b66c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -298,20 +298,16 @@
//!
//! let payer = next_account_info(account_info_iter)?;
//! let recipient = next_account_info(account_info_iter)?;
//! // The system program is a required account to invoke a system
//! // instruction, even though we don't use it directly.
//! let system_account = next_account_info(account_info_iter)?;
//!
//! assert!(payer.is_writable);
//! assert!(payer.is_signer);
//! assert!(recipient.is_writable);
//! assert!(system_program::check_id(system_account.key));
//!
//! let lamports = 1000000;
//!
//! invoke(
//! &system_instruction::transfer(payer.key, recipient.key, lamports),
//! &[payer.clone(), recipient.clone(), system_account.clone()],
//! &[payer.clone(), recipient.clone()],
//! )
//! }
//! ```