File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 38
38
39
39
### Fixed
40
40
41
+ * nostr: fix NIP-47 ` list_transactions ` response deserialization ([ Yuki Kishimoto] )
42
+
41
43
### Removed
42
44
43
45
## [ v0.32.0]
Original file line number Diff line number Diff line change @@ -723,7 +723,15 @@ impl Response {
723
723
ResponseResult :: LookupInvoice ( result)
724
724
}
725
725
Method :: ListTransactions => {
726
- let result: Vec < LookupInvoiceResponseResult > = serde_json:: from_value ( result) ?;
726
+ let transactions: Value =
727
+ result
728
+ . get ( "transactions" )
729
+ . cloned ( )
730
+ . ok_or ( Error :: UnexpectedResult ( String :: from (
731
+ "Missing 'transactions' field" ,
732
+ ) ) ) ?;
733
+ let result: Vec < LookupInvoiceResponseResult > =
734
+ serde_json:: from_value ( transactions) ?;
727
735
ResponseResult :: ListTransactions ( result)
728
736
}
729
737
Method :: GetBalance => {
You can’t perform that action at this time.
0 commit comments