Updated on 2026-08-14
This commit is contained in:
parent
50d082bf95
commit
bb2877e36c
6 changed files with 225 additions and 7 deletions
|
|
@ -16,6 +16,7 @@ sealed class SendDestinationComponentParams {
|
|||
abstract val analyticsSendSource: CommonSendAnalyticEvents.CommonSendSource
|
||||
abstract val userWalletId: UserWalletId
|
||||
abstract val cryptoCurrency: CryptoCurrency
|
||||
abstract val isAllowSelfSend: Boolean
|
||||
|
||||
data class DestinationParams(
|
||||
override val state: DestinationUM,
|
||||
|
|
@ -27,6 +28,7 @@ sealed class SendDestinationComponentParams {
|
|||
val isBalanceHidingFlow: StateFlow<Boolean>,
|
||||
val currentRoute: Flow<DestinationRoute>,
|
||||
val callback: SendDestinationComponent.ModelCallback,
|
||||
override val isAllowSelfSend: Boolean = false,
|
||||
) : SendDestinationComponentParams()
|
||||
|
||||
data class DestinationBlockParams(
|
||||
|
|
@ -37,5 +39,6 @@ sealed class SendDestinationComponentParams {
|
|||
override val cryptoCurrency: CryptoCurrency,
|
||||
val blockClickEnableFlow: StateFlow<Boolean>,
|
||||
val predefinedValues: PredefinedValues,
|
||||
override val isAllowSelfSend: Boolean = false,
|
||||
) : SendDestinationComponentParams()
|
||||
}
|
||||
|
|
@ -288,6 +288,7 @@ internal class SendDestinationModel @Inject constructor(
|
|||
network = cryptoCurrency.network,
|
||||
address = address,
|
||||
senderAddresses = senderAddresses.value,
|
||||
allowSelfSend = params.isAllowSelfSend,
|
||||
)
|
||||
val memoValidationResult = validateWalletMemoUseCase(
|
||||
userWalletId = userWalletId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue