Skip to content

Commit

Permalink
Fix requesting fees
Browse files Browse the repository at this point in the history
  • Loading branch information
micbakos-rdx committed Feb 24, 2025
1 parent 6a020d1 commit 69255cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,7 @@ class AssetDialogViewModel @Inject constructor(

// In case that the claim NFT is newly created and has no info
// yet about the claim amount and epoch.
data object Unknown: ClaimState

data object Unknown : ClaimState
}

sealed interface HideConfirmationType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,17 +179,11 @@ class TransactionReviewViewModel @Inject constructor(
analysis.analyse()
.onSuccess { analysis ->
data.update { it.copy(txSummary = analysis.summary) }
}
.then { analysis ->

when (request.kind) {
is TransactionRequest.Kind.PreAuthorized -> processExpiration(request.kind.expiration)
is TransactionRequest.Kind.Regular -> fees.resolveFees(analysis)
}
if (!request.kind.isPreAuthorized) {
fees.resolveFees(analysis)
} else {
Result.success(Unit)
}
}
}

Expand Down

0 comments on commit 69255cf

Please sign in to comment.