Improve comments
This commit is contained in:
@ -6,16 +6,14 @@ use pubkey::Pubkey;
|
|||||||
pub struct Account {
|
pub struct Account {
|
||||||
/// tokens in the account
|
/// tokens in the account
|
||||||
pub tokens: u64,
|
pub tokens: u64,
|
||||||
/// user data
|
/// data held in this account
|
||||||
/// A transaction can write to its userdata
|
|
||||||
pub userdata: Vec<u8>,
|
pub userdata: Vec<u8>,
|
||||||
/// contract id this contract belongs to
|
/// the program that owns this account
|
||||||
pub owner: Pubkey,
|
pub owner: Pubkey,
|
||||||
|
/// this account's userdata contains a loaded program (and is now read-only)
|
||||||
/// this account contains a program (and is strictly read-only)
|
|
||||||
pub executable: bool,
|
pub executable: bool,
|
||||||
|
/// the loader for this account
|
||||||
/// the loader for this program (Pubkey::default() for no loader)
|
/// (Pubkey::default() if the account is not executable and thus was never 'loaded')
|
||||||
pub loader: Pubkey,
|
pub loader: Pubkey,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user