Skip to content

Commit

Permalink
Merge pull request #38 from metaDAOproject/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
R-K-H authored Dec 18, 2024
2 parents 8f23d66 + 3403fa5 commit d447c92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/entities/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,14 @@ pub struct Payload {
pub compute_units_consumed: String,
pub fee: String,
pub signatures: Vec<String>,
pub version: String,
pub log_messages: Vec<String>,
pub accounts: Vec<Account>,
pub instructions: Vec<Instruction>,
}

impl Payload {
pub fn parse_payload(json_str: &str) -> Result<Payload, serde_json::Error> {
serde_json::from_str(json_str)
serde_json::from_str(json_str)
}
pub fn get_main_ix_type(&self) -> Option<InstructionType> {
for ix in &self.instructions {
Expand Down

0 comments on commit d447c92

Please sign in to comment.