Skip to content

Commit

Permalink
Merge pull request #575 from AloeareV/fix_non-zero_account_index_taddrs
Browse files Browse the repository at this point in the history
put position in the right place
  • Loading branch information
AloeareV authored Oct 11, 2023
2 parents df79255 + d705560 commit 53cffa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zingolib/src/wallet/keys/extended_transparent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ impl ExtendedPrivKey {
KeyIndex::hardened_from_normalize_index(config.get_coin_type()).unwrap(),
)
.unwrap()
.derive_private_key(KeyIndex::hardened_from_normalize_index(0).unwrap())
.derive_private_key(KeyIndex::hardened_from_normalize_index(position).unwrap())
.unwrap()
.derive_private_key(KeyIndex::Normal(position))
.derive_private_key(KeyIndex::Normal(0))
.unwrap()
}

Expand Down

0 comments on commit 53cffa3

Please sign in to comment.