feat: expose obtaining reference to Mnemonic from DirectSecp256k1HdWallet (#6083)

* feat: expose obtaining reference to Mnemonic from DirectSecp256k1HdWallet

* updated getters for stringified mnemonic
This commit is contained in:
Jędrzej Stuczyński
2025-10-13 09:22:15 +01:00
committed by GitHub
parent b3a940770a
commit aa6a79cb3e
2 changed files with 13 additions and 2 deletions
@@ -18,6 +18,6 @@ pub fn create_account(args: Args, prefix: &str) {
let wallet = DirectSecp256k1HdWallet::from_mnemonic(prefix, mnemonic);
// Output address and mnemonics into separate lines for easier parsing
println!("{}", wallet.mnemonic());
println!("{}", wallet.mnemonic_string().as_str());
println!("{}", wallet.try_derive_accounts().unwrap()[0].address());
}