diff --git a/pkg/plugin/pay.go b/pkg/plugin/pay.go index 839a1ef..0e8da90 100644 --- a/pkg/plugin/pay.go +++ b/pkg/plugin/pay.go @@ -48,10 +48,10 @@ func OceanPay(cln *plugin.Plugin[*State], request map[string]any) (map[string]an // our node requested the invoice "exposeid": true, }) - invoice = payInvoice["bolt11"].(string) if err != nil { return nil, err } + invoice = payInvoice["bolt11"].(string) default: return nil, fmt.Errorf("Invoice String %s not supported: %s", clnDecode.InvType, clnRequest.Invstr) }