From 17905a1490def2c7b3e409df9ddb6c66fa617322 Mon Sep 17 00:00:00 2001 From: elnosh Date: Thu, 21 Nov 2024 11:59:01 -0500 Subject: [PATCH] fix melt wallet example --- wallet/examples/wallet.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wallet/examples/wallet.go b/wallet/examples/wallet.go index 80c79e8..7817b7e 100644 --- a/wallet/examples/wallet.go +++ b/wallet/examples/wallet.go @@ -30,7 +30,7 @@ func main() { } // Send - mint := "http://localhost:3338" + mint := wallet.CurrentMint() includeFees := true includeDLEQProof := false proofsToSend, err := wallet.Send(21, mint, includeFees) @@ -44,5 +44,6 @@ func main() { amountReceived, err := wallet.Receive(receiveToken, swapToTrustedMint) // Melt (pay invoice) - meltResponse, err := wallet.Melt("lnbc100n1pja0w9pdqqx...", mint) + meltQuote, err := wallet.RequestMeltQuote("lnbc100n1pja0w9pdqqx...", mint) + meltResult, err := wallet.Melt(meltQuote.Quote) }