Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support off-chain payment with booking token in bot #50

Merged
merged 3 commits into from
Oct 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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