Skip to content

Commit

Permalink
fix melt wallet example
Browse files Browse the repository at this point in the history
  • Loading branch information
elnosh committed Nov 21, 2024
1 parent 9df5abb commit 17905a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wallet/examples/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
}

0 comments on commit 17905a1

Please sign in to comment.