From 28546421c875b9969bcadac50ffd769b01a9186f Mon Sep 17 00:00:00 2001 From: Marcos Henrich Date: Thu, 16 May 2024 13:38:57 +0100 Subject: [PATCH] Changes log_id to a String. (#19) Changes log_id to a String as required for hash based log ids in https://github.com/FuelLabs/sway/pull/5980. --- 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, }