Skip to content

Commit

Permalink
Changes log_id to a String. (#19)
Browse files Browse the repository at this point in the history
Changes log_id to a String as required for hash based log ids in
FuelLabs/sway#5980.
  • Loading branch information
esdrubal authored May 16, 2024
1 parent d04a437 commit 2854642
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/abi/full_program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ impl FullTypeApplication {

#[derive(Debug, Clone)]
pub struct FullLoggedType {
pub log_id: u64,
pub log_id: String,
pub application: FullTypeApplication,
}

Expand All @@ -231,7 +231,7 @@ impl FullLoggedType {
types: &HashMap<usize, TypeDeclaration>,
) -> FullLoggedType {
FullLoggedType {
log_id: logged_type.log_id,
log_id: logged_type.log_id.clone(),
application: FullTypeApplication::from_counterpart(&logged_type.application, types),
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/abi/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit 2854642

Please sign in to comment.