Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Nov 2, 2023
1 parent d4863bd commit 10fdde0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/core/src/method/wallet_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub enum WalletCommandMethod {
#[cfg(feature = "participation")]
#[cfg_attr(docsrs, doc(cfg(feature = "participation")))]
GetVotingPower,
/// Returns the wallet implicit account creation address
/// Returns the implicit account creation address of the wallet if it is Ed25519 based.
/// Expected response: [`Bech32Address`](crate::Response::Bech32Address)
ImplicitAccountCreationAddress,
/// Returns all incoming transactions of the wallet
Expand Down
1 change: 1 addition & 0 deletions cli/src/wallet_cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ pub enum WalletCommand {
/// URL of the faucet, default to <http://localhost:8088/api/enqueue>.
url: Option<String>,
},
/// Returns the implicit account creation address of the wallet if it is Ed25519 based.
ImplicitAccountCreationAddress,
/// Mint additional native tokens.
MintNativeToken {
Expand Down
1 change: 1 addition & 0 deletions sdk/src/wallet/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ where
self.data().await.address.clone()
}

/// Returns the implicit account creation address of the wallet if it is Ed25519 based.
pub async fn implicit_account_creation_address(&self) -> Result<Bech32Address> {
let bech32_address = &self.data().await.address;

Expand Down

0 comments on commit 10fdde0

Please sign in to comment.