Skip to content

Commit

Permalink
Merge pull request #4 from mirrorworld-universe/feature-gate-account
Browse files Browse the repository at this point in the history
feat: Add remote flag to UiAccount struct
  • Loading branch information
johnnymail authored Jun 15, 2024
2 parents f1082bd + 5e3ad8c commit 841811c
Show file tree
Hide file tree
Showing 2 changed files with 496 additions and 0 deletions.
3 changes: 3 additions & 0 deletions account-decoder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ pub struct UiAccount {
pub executable: bool,
pub rent_epoch: Epoch,
pub space: Option<u64>,
pub remote: bool,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
Expand Down Expand Up @@ -152,13 +153,15 @@ impl UiAccount {
}
}
};

UiAccount {
lamports: account.lamports(),
data,
owner: account.owner().to_string(),
executable: account.executable(),
rent_epoch: account.rent_epoch(),
space: Some(space as u64),
remote: false,
}
}

Expand Down
Loading

0 comments on commit 841811c

Please sign in to comment.