Skip to content

Commit

Permalink
Fixed error in returned value of create_account method
Browse files Browse the repository at this point in the history
  • Loading branch information
mchtilianov authored Oct 21, 2023
1 parent 5756227 commit 91f25f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1361,10 +1361,10 @@ impl WalletClient {
pub async fn create_account(&self, label: Option<String>) -> anyhow::Result<CreateWallet>{
let params = empty()
.chain(once(("label", label.into())));
Ok(self
.inner
.request::<CreateWallet>("create_account", RpcParams::map(params))
.await?)
self
.inner
.request::<CreateWallet>("create_account", RpcParams::map(params))
.await
}
}

Expand Down

0 comments on commit 91f25f3

Please sign in to comment.