mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-10-10 21:04:10 +02:00
nip60: expose GetSatoshisAmountFromBolt11() helper.
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user