Skip to content

Commit

Permalink
Support off-chain payment with booking token in bot (#50)
Browse files Browse the repository at this point in the history
Support off chain payment (ISO currency) with booking token in bot
  • Loading branch information
nkoljanin authored Oct 2, 2024
1 parent 714ece3 commit a6fefd1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/messaging/response_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,9 @@ func (h *evmResponseHandler) mint(
// if contract address is zeroAddress, then it is native token
return "", nil, fmt.Errorf("TokenCurrency not supported yet")
case *typesv2.Currency_IsoCurrency:
// Add logic to handle IsoCurrency
return "", nil, fmt.Errorf("IsoCurrency not supported yet")
// For IsoCurrency, keep price as 0 and paymentToken as zeroAddress
bigIntPrice = big.NewInt(0)
paymentToken = zeroAddress
}

tx, err := h.bookingService.MintBookingToken(
Expand Down

0 comments on commit a6fefd1

Please sign in to comment.