Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenlu committed Sep 18, 2024
1 parent e7ae80a commit cc12cf2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/uma-server/vasp1.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ func (v *Vasp1) handleClientPayReq(context *gin.Context) {
})
return
}

umaMajorVersion := uma.MAJOR_VERSION
if initialRequestData.lnurlpResponse.UmaVersion != nil {
umaVersion, err := uma.ParseVersion(*initialRequestData.lnurlpResponse.UmaVersion)
Expand Down Expand Up @@ -728,9 +729,8 @@ func (v *Vasp1) handleClientPaymentConfirm(context *gin.Context) {
Amount: amountMilliSatoshi,
})
}
if err != nil {
log.Fatalf("Failed to marshal UTXOs: %v", err)
} else if payReqData.utxoCallback != nil {

if payReqData.utxoCallback != nil {
log.Printf("Sending UTXOs to %s: %+v", *payReqData.utxoCallback, utxosWithAmounts)
signingPrivateKey, err := v.config.UmaSigningPrivKeyBytes()
if err != nil {
Expand Down Expand Up @@ -838,7 +838,7 @@ func (v *Vasp1) handleNonUmaPayReq(
}
var sendingAmountCurrencyCode *string
if !isAmountInMsats {
*sendingAmountCurrencyCode = currencyCode
sendingAmountCurrencyCode = &currencyCode
}
payreq := umaprotocol.PayRequest{
SendingAmountCurrencyCode: sendingAmountCurrencyCode,
Expand Down

0 comments on commit cc12cf2

Please sign in to comment.