Skip to content

Commit

Permalink
chore(autonomi): unify register name arg type
Browse files Browse the repository at this point in the history
  • Loading branch information
loziniak committed Nov 5, 2024
1 parent d223ded commit 8e698b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autonomi-cli/src/commands/register.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub async fn cost(name: &str, peers: Vec<Multiaddr>) -> Result<()> {
let client = crate::actions::connect_to_network(peers).await?;

let cost = client
.register_cost(name.to_string(), register_key)
.register_cost(name, register_key)
.await
.wrap_err("Failed to get cost for register")?;
info!("Estimated cost to create a register with name {name}: {cost}");
Expand Down
2 changes: 1 addition & 1 deletion autonomi/src/client/registers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ impl Client {
/// Get the cost to create a register
pub async fn register_cost(
&self,
name: String,
name: &str,
owner: RegisterSecretKey,
) -> Result<AttoTokens, RegisterError> {
info!("Getting cost for register with name: {name}");
Expand Down

0 comments on commit 8e698b9

Please sign in to comment.