Update AccountInfo comments (#13302)

This commit is contained in:
Jack May
2020-10-30 01:16:44 -07:00
committed by GitHub
parent 387d85c5b5
commit 72d41e5801

View File

@ -10,13 +10,13 @@ use std::{
pub struct AccountInfo<'a> { pub struct AccountInfo<'a> {
/// Public key of the account /// Public key of the account
pub key: &'a Pubkey, pub key: &'a Pubkey,
// Was the transaction signed by this account's public key? /// Was the transaction signed by this account's public key?
pub is_signer: bool, pub is_signer: bool,
// Is the account writable? /// Is the account writable?
pub is_writable: bool, pub is_writable: bool,
/// Account members that are mutable by the program /// The lamports in the account. Modifiable by programs.
pub lamports: Rc<RefCell<&'a mut u64>>, pub lamports: Rc<RefCell<&'a mut u64>>,
/// Account members that are mutable by the program /// The data held in this account. Modifiable by programs.
pub data: Rc<RefCell<&'a mut [u8]>>, pub data: Rc<RefCell<&'a mut [u8]>>,
/// Program that owns this account /// Program that owns this account
pub owner: &'a Pubkey, pub owner: &'a Pubkey,