Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pause125 committed Jul 25, 2024
1 parent 98eebd1 commit f248ac5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions crates/rooch/src/commands/move_cli/commands/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,10 @@ impl Publish {
};
let object_state = ObjectState::new(metadata, bytes);
let module = object_state.value_as_df::<MoveString, MoveModule>()?;
let module_id = format!("{}::{}", package_owner, module.name);
let module_id = ModuleId::new(
package_owner.into(),
Identifier::new(format!("{}", module.name))?,
);
if flag == 0 {
new_modules.push(module_id);
} else {
Expand All @@ -292,15 +295,15 @@ impl Publish {
output.push_str("\n None");
} else {
for module in new_modules {
output.push_str(&format!("\n {}", module));
output.push_str(&format!("\n {}", module.short_str_lossless()));
}
};
output.push_str("\n\nUpdated modules:");
if updated_modules.is_empty() {
output.push_str("\n None");
} else {
for module in updated_modules {
output.push_str(&format!("\n {}", module));
output.push_str(&format!("\n {}", module.short_str_lossless()));
}
};
}
Expand Down

0 comments on commit f248ac5

Please sign in to comment.