nip60: expose GetSatoshisAmountFromBolt11() helper.

This commit is contained in:
fiatjaf
2025-02-05 13:20:41 -03:00
parent 26da7967dc
commit 0330c198fb
3 changed files with 3 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ func TestBolt11Parsing(t *testing.T) {
{"lnbc1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq", 0, false},
} {
t.Run(fmt.Sprintf("%d = %s", tc.sats, tc.bolt11), func(t *testing.T) {
sats, err := getSatoshisAmountFromBolt11(tc.bolt11)
sats, err := GetSatoshisAmountFromBolt11(tc.bolt11)
if tc.hasError {
require.Error(t, err)
} else {