diff --git a/Cargo.lock b/Cargo.lock index 47e3d9c1594e129b451d428c33b925dadfc33f0f..5cf8c391a12905c87cb6203914d594db29dab0ef 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1875,7 +1875,7 @@ dependencies = [ [[package]] name = "gcli" -version = "0.1.0" +version = "0.2.1" dependencies = [ "anyhow", "bs58", diff --git a/Cargo.toml b/Cargo.toml index a7133d2608be327861baec30be0ad90f5c5a9b89..ae6e0208ea64032eecf58baa920bad8758b5cdc9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ edition = "2021" license = "AGPL-3.0" name = "gcli" repository = "https://git.duniter.org/clients/rust/gcli-v2s" -version = "0.1.0" +version = "0.2.1" [dependencies] # subxt is main dependency diff --git a/src/commands/identity.rs b/src/commands/identity.rs index 324dc6294716274dc1e3d3e974f2125c8bc5576d..575501164f2b58e808a2a50587291e3592bcc11f 100644 --- a/src/commands/identity.rs +++ b/src/commands/identity.rs @@ -262,7 +262,9 @@ pub async fn confirm_identity(data: &Data, name: String) -> Result<(), subxt::Er Payload<runtime::identity::calls::types::ConfirmIdentity>, >( data, - &runtime::tx().identity().confirm_identity(IdtyName(name.into())), + &runtime::tx() + .identity() + .confirm_identity(IdtyName(name.into())), ) .await } diff --git a/src/display.rs b/src/display.rs index 4c49083e7b5d3da821967161afe46da746bdeeb2..52765f748dbc50a5abae66f6b76f39bad8715bf0 100644 --- a/src/display.rs +++ b/src/display.rs @@ -47,7 +47,9 @@ impl DisplayEvent for runtime::identity::events::IdtyConfirmed { fn display(&self, _data: &Data) -> String { format!( "identity confirmed with name \"{}\" (index {}, owner key {})", - str::from_utf8(&self.name.0).unwrap(), self.idty_index, self.owner_key + str::from_utf8(&self.name.0).unwrap(), + self.idty_index, + self.owner_key ) } }