mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-05 21:26:13 +01:00
fix: use correct error
This commit is contained in:
@@ -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(_) => {
|
||||
|
||||
@@ -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?;
|
||||
|
||||
Reference in New Issue
Block a user