Updated on 2026-08-14
This commit is contained in:
parent
8adc79a8c3
commit
f4bb2bbc2d
21 changed files with 327 additions and 236 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package com.tangem.domain.demo
|
||||
|
||||
import com.tangem.blockchain.common.*
|
||||
import com.tangem.blockchain.common.smartcontract.SmartContractCallData
|
||||
import com.tangem.blockchain.common.transaction.Fee
|
||||
import com.tangem.blockchain.common.transaction.TransactionFee
|
||||
import com.tangem.blockchain.common.transaction.TransactionSendResult
|
||||
|
|
@ -24,8 +25,12 @@ class DemoTransactionSender(private val walletManager: WalletManager) : Transact
|
|||
)
|
||||
}
|
||||
|
||||
override suspend fun estimateFee(amount: Amount, destination: String): Result<TransactionFee> {
|
||||
return getFee(amount, walletManager.wallet.address)
|
||||
override suspend fun estimateFee(
|
||||
amount: Amount,
|
||||
destination: String,
|
||||
callData: SmartContractCallData?,
|
||||
): Result<TransactionFee> {
|
||||
return getFee(amount, walletManager.wallet.address, callData)
|
||||
}
|
||||
|
||||
override suspend fun send(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue