From d7ee6debad46f5ad7e9f7fb75273504931d2ad0a Mon Sep 17 00:00:00 2001 From: Hugo Trentesaux <hugo@trentesaux.fr> Date: Wed, 31 Jan 2024 13:57:06 +0100 Subject: [PATCH] v0.2.1 --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/commands/identity.rs | 4 +++- src/display.rs | 4 +++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 47e3d9c..5cf8c39 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 a7133d2..ae6e020 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 324dc62..5755011 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 4c49083..52765f7 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 ) } } -- GitLab