Просмотр исходного кода

fix: return actual error from get_payment_quote (#1274)

gudnuf 4 дней назад
Родитель
Сommit
4723e32886
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      crates/cdk/src/mint/melt/mod.rs

+ 2 - 2
crates/cdk/src/mint/melt/mod.rs

@@ -179,7 +179,7 @@ impl Mint {
                     METRICS.record_mint_operation("get_melt_bolt11_quote", false);
                     METRICS.record_error();
                 }
-                Error::UnsupportedUnit
+                err
             })?;
 
         if &payment_quote.unit != unit {
@@ -285,7 +285,7 @@ impl Mint {
                     err
                 );
 
-                Error::UnsupportedUnit
+                err
             })?;
 
         if &payment_quote.unit != unit {