fix: use correct error

This commit is contained in:
thesimplekid
2025-02-09 10:49:44 +00:00
parent 9697e602df
commit 0efa50ffad
2 changed files with 4 additions and 4 deletions

View File

@@ -866,9 +866,9 @@ async fn test_fake_mint_input_output_mismatch() -> Result<()> {
match response {
Err(err) => match err {
cdk::Error::UnsupportedUnit => (),
_ => {
bail!("Wrong error returned");
cdk::Error::UnitMismatch => (),
err => {
bail!("Wrong error returned: {}", err);
}
},
Ok(_) => {

View File

@@ -192,7 +192,7 @@ impl Mint {
output_verification.unit,
input_verification.unit
);
return Err(Error::MultipleUnits);
return Err(Error::UnitMismatch);
}
let fees = self.get_proofs_fee(inputs).await?;