Commit 96938ce
committed
bolt12: Add test vector for missing offer_amount with offer_currency
Adds a test case to verify that offers with offer_currency set but
offer_amount missing are correctly rejected, as required by BOLT 12
specification section "Requirements For Offers":
"if `offer_currency` is set and `offer_amount` is not set:
- MUST NOT respond to the offer."1 parent 6c5968a commit 96938ce
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
576 | 581 | | |
577 | 582 | | |
578 | 583 | | |
| |||
0 commit comments