Skip to content

Commit

Permalink
fix: remove xpriv param from generate_premint_secrets()
Browse files Browse the repository at this point in the history
  • Loading branch information
vnprc committed Sep 4, 2024
1 parent 1c82e21 commit 5a4e3fd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/cdk/src/wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,6 @@ impl Wallet {
/// minted tokens
/// - `count`: How many tokens were previously generated from this keyset +
/// 1
/// - `xpriv`: The extended private key used for generating secrets
///
/// # Returns
///
Expand All @@ -600,7 +599,6 @@ impl Wallet {
amount_split_target: &SplitTarget,
spending_conditions: Option<&SpendingConditions>,
count: u32,
xpriv: ExtendedPrivKey,
) -> Result<PreMintSecrets, Error> {
// Move the match logic into this function.
match spending_conditions {
Expand All @@ -613,7 +611,7 @@ impl Wallet {
None => Ok(PreMintSecrets::from_xpriv(
active_keyset_id,
count,
xpriv,
self.xpriv,
quote_info_amount,
amount_split_target,
)?),
Expand Down Expand Up @@ -694,7 +692,6 @@ impl Wallet {
&amount_split_target,
spending_conditions.as_ref(),
count,
self.xpriv,
)?;

let mint_res = self
Expand Down

0 comments on commit 5a4e3fd

Please sign in to comment.