This commit is contained in:
Sergio Chouhy 2026-04-24 00:42:54 -03:00
parent 6f9c3b2af3
commit 584bfb2052
3 changed files with 2 additions and 4 deletions

View File

@ -41,7 +41,6 @@ impl<N: KeyTreeNode> KeyTree<N> {
let root_keys = N::from_seed(seed_fit);
let account_id_map = root_keys
.account_ids()
.into_iter()
.map(|id| (id, ChainIndex::root()))
.collect();
@ -54,7 +53,6 @@ impl<N: KeyTreeNode> KeyTree<N> {
pub fn new_from_root(root: N) -> Self {
let account_id_map = root
.account_ids()
.into_iter()
.map(|id| (id, ChainIndex::root()))
.collect();

View File

@ -156,7 +156,7 @@ impl WalletSubcommand for AuthTransferSubcommand {
anyhow::bail!("Provide only one of --to or --to-label")
}
};
let to_identifier = to_identifier.unwrap_or(rand::random());
let to_identifier = to_identifier.unwrap_or_else(rand::random);
let underlying_subcommand = match (to, to_npk, to_vpk) {
(None, None, None) => {
anyhow::bail!(

View File

@ -256,7 +256,7 @@ impl WalletSubcommand for TokenProgramAgnosticSubcommand {
anyhow::bail!("Provide only one of --to or --to-label")
}
};
let to_identifier = to_identifier.unwrap_or(rand::random());
let to_identifier = to_identifier.unwrap_or_else(rand::random);
let underlying_subcommand = match (to, to_npk, to_vpk) {
(None, None, None) => {
anyhow::bail!(