Skip to content

Commit

Permalink
Merge pull request #37 from metaDAOproject/fix/transaction-version
Browse files Browse the repository at this point in the history
Fix/transaction version
  • Loading branch information
R-K-H authored Dec 18, 2024
2 parents d576c69 + 1dd65e7 commit 3403fa5
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 3403fa5

Please sign in to comment.