From 1dd65e7ccd20ba10a5dda213b686f0a9e4d49671 Mon Sep 17 00:00:00 2001 From: Reid Garner Date: Wed, 18 Dec 2024 09:08:28 -0800 Subject: [PATCH] Removing version from transaction payload This is either a string or a 0 which rust does not like and is not used. --- src/entities/transactions.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/entities/transactions.rs b/src/entities/transactions.rs index f8284d6..805c208 100644 --- a/src/entities/transactions.rs +++ b/src/entities/transactions.rs @@ -116,7 +116,6 @@ pub struct Payload { pub compute_units_consumed: String, pub fee: String, pub signatures: Vec, - pub version: String, pub log_messages: Vec, pub accounts: Vec, pub instructions: Vec, @@ -124,7 +123,7 @@ pub struct Payload { impl Payload { pub fn parse_payload(json_str: &str) -> Result { - serde_json::from_str(json_str) + serde_json::from_str(json_str) } pub fn get_main_ix_type(&self) -> Option { for ix in &self.instructions {