Skip to content

Commit

Permalink
Update comment on state.rs regarding is_native
Browse files Browse the repository at this point in the history
I was confused when reading this comment and had to read the code to realize that the comment isn't a typo. 

(Btw, let me know if this kind of small changes are helpful or not 👍.)
  • Loading branch information
vpontis authored and mvines committed Nov 29, 2021
1 parent 7393f1d commit 801b4e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions token/program/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ pub struct Account {
pub delegate: COption<Pubkey>,
/// The account's state
pub state: AccountState,
/// If is_some, this is a native token, and the value logs the rent-exempt reserve. An Account
/// is required to be rent-exempt, so the value is used by the Processor to ensure that wrapped
/// SOL accounts do not drop below this threshold.
/// If is_native.is_some, this is a native token, and the value logs the rent-exempt reserve. An
/// Account is required to be rent-exempt, so the value is used by the Processor to ensure that
/// wrapped SOL accounts do not drop below this threshold.
pub is_native: COption<u64>,
/// The amount delegated
pub delegated_amount: u64,
Expand Down

0 comments on commit 801b4e5

Please sign in to comment.