소스 검색

Fixed notification

The events were sent as Bolt11 instead of Bolt12.

TOOD: Update the HTTP client to reflect the same behaviour as the ws server
Cesar Rodas 1 개월 전
부모
커밋
785bef7113
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      crates/cdk-common/src/subscription.rs

+ 4 - 1
crates/cdk-common/src/subscription.rs

@@ -85,7 +85,10 @@ impl Indexable for NotificationPayload<Uuid> {
                 vec![Index::from(Notification::MintQuoteBolt11(mint_quote.quote))]
             }
             NotificationPayload::MintQuoteBolt12Response(mint_quote) => {
-                vec![Index::from(Notification::MintQuoteBolt12(mint_quote.quote))]
+                vec![
+                    Index::from(Notification::MintQuoteBolt12(mint_quote.quote)),
+                    Index::from(Notification::MintQuoteBolt11(mint_quote.quote)),
+                ]
             }
         }
     }