Skip to content

Commit

Permalink
chore: log full Register address when created in cli and example app
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmarkiewicz authored and maqi committed Dec 21, 2023
1 parent 03ad491 commit 9c9cb56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sn_cli/src/subcommands/register.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ async fn create_register(
if storage_cost.is_zero() {
println!(
"Register '{name}' already exists at {}!",
register.address()
register.address().to_hex()
);
} else {
println!(
"Successfully created register '{name}' at {} for {storage_cost:?} (royalties fees: {royalties_fees:?})!",
register.address()
register.address().to_hex()
);
}
Ok(())
Expand Down
1 change: 1 addition & 0 deletions sn_node/examples/registers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ async fn main() -> Result<()> {
register
}
};
println!("Register address: {:?}", reg_replica.address().to_hex());
println!("Register owned by: {:?}", reg_replica.owner());
println!("Register permissions: {:?}", reg_replica.permissions());

Expand Down

0 comments on commit 9c9cb56

Please sign in to comment.