From f5a53704bb81f74edb9a46004c2f604464b329e3 Mon Sep 17 00:00:00 2001 From: thesimplekid Date: Sun, 9 Jul 2023 10:02:22 -0400 Subject: [PATCH] fix: process split request --- src/mint.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/mint.rs b/src/mint.rs index 9b1aecc4..2c6897d7 100644 --- a/src/mint.rs +++ b/src/mint.rs @@ -127,10 +127,6 @@ impl Mint { return Err(Error::Amount); } - if output_total.gt(amount) { - return Err(Error::Amount); - } - let outs_fst = (proofs_total.to_owned() - amount.to_owned()).split(); // Blinded change messages @@ -141,7 +137,7 @@ impl Mint { let snd: Vec = b_snd.iter().map(|b| self.blind_sign(b).unwrap()).collect(); - let split_response = SplitResponse::new_from_amount(snd, fst); + let split_response = SplitResponse::new_from_amount(fst, snd); if split_response.target_amount() != split_request.amount { return Err(Error::OutputOrdering);