From fd2bf9993f64ebdd9b89d60668b118b57a4b3976 Mon Sep 17 00:00:00 2001 From: Marcos Henrich Date: Thu, 16 May 2024 13:31:28 +0100 Subject: [PATCH] Changes log_id to a String. --- src/abi/full_program.rs | 4 ++-- src/abi/program.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/abi/full_program.rs b/src/abi/full_program.rs index 9990480..8c7d778 100644 --- a/src/abi/full_program.rs +++ b/src/abi/full_program.rs @@ -221,7 +221,7 @@ impl FullTypeApplication { #[derive(Debug, Clone)] pub struct FullLoggedType { - pub log_id: u64, + pub log_id: String, pub application: FullTypeApplication, } @@ -231,7 +231,7 @@ impl FullLoggedType { types: &HashMap, ) -> FullLoggedType { FullLoggedType { - log_id: logged_type.log_id, + log_id: logged_type.log_id.clone(), application: FullTypeApplication::from_counterpart(&logged_type.application, types), } } diff --git a/src/abi/program.rs b/src/abi/program.rs index 716ff4f..5bc3b0e 100644 --- a/src/abi/program.rs +++ b/src/abi/program.rs @@ -86,7 +86,7 @@ pub struct TypeApplication { #[derive(Default, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct LoggedType { - pub log_id: u64, + pub log_id: String, #[serde(rename = "loggedType")] pub application: TypeApplication, }