Skip to content

Commit

Permalink
add comment next to hardcoded value for isCancellable
Browse files Browse the repository at this point in the history
  • Loading branch information
VjeraTurk committed Oct 28, 2024
1 parent 2bc56a9 commit e89b584
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cm_accounts/cm_accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,14 +268,15 @@ func (s *service) MintBookingToken(
return nil, fmt.Errorf("failed to get cmAccount contract instance: %w", err)
}

// TODO: @VjeraTurk enable setting isCancellable flag fom mintv3 on.
tx, err := cmAccount.MintBookingToken(
transactOpts,
reservedFor,
uri,
expirationTimestamp,
price,
paymentToken,
false,
false, // In mintv1 and mintv2 isCancellable is always false - as tokens are not cancellable.
)
if err != nil {
return nil, fmt.Errorf("failed to mint booking token: %w", err)
Expand Down

0 comments on commit e89b584

Please sign in to comment.