Skip to content

Commit

Permalink
Changes log_id to a String.
Browse files Browse the repository at this point in the history
  • Loading branch information
esdrubal committed May 16, 2024
1 parent d04a437 commit fd2bf99
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 fd2bf99

Please sign in to comment.