Updated on 2026-08-14

This commit is contained in:
Tangem 2023-06-14 23:27:16 +03:00
parent 72256ab5c5
commit 24b9265c73
4 changed files with 9 additions and 9 deletions

View file

@ -86,7 +86,7 @@ class WalletConnectSdkHelper {
val transactionData = TransactionData(
amount = Amount(value, wallet.blockchain),
fee = Fee.CommonFee(Amount(fee, wallet.blockchain)),
fee = Fee.Common(Amount(fee, wallet.blockchain)),
sourceAddress = transaction.from,
destinationAddress = transaction.to!!,
extras = EthereumTransactionExtras(

View file

@ -90,9 +90,9 @@ class DemoTransactionSender(private val walletManager: WalletManager) : Transact
val blockchain = walletManager.wallet.blockchain
return Result.Success(
TransactionFee.Choosable(
minimum = Fee.CommonFee(Amount(minimumFee, blockchain)),
normal = Fee.CommonFee(Amount(normalFee, blockchain)),
priority = Fee.CommonFee(Amount(priorityFee, blockchain))
minimum = Fee.Common(Amount(minimumFee, blockchain)),
normal = Fee.Common(Amount(normalFee, blockchain)),
priority = Fee.Common(Amount(priorityFee, blockchain))
)
)
}

View file

@ -140,7 +140,7 @@ class GnosisRegistrator(
val compiledEthereumTransaction = walletManager.transactionBuilder.buildApproveToSign(
transactionData = walletManager.createTransaction(
amount = approveAmount,
fee = Fee.CommonFee(feeAmount),
fee = Fee.Common(feeAmount),
destination = otpProcessorContractAddress,
),
nonce = atomicNonce.getAndIncrement().toBigInteger(),

View file

@ -100,7 +100,7 @@ class TransactionManagerImpl(
): SendTxResult {
val txData = walletManager.createTransaction(
amount = amount,
fee = Fee.CommonFee(Amount(value = feeAmount, blockchain = blockchain)),
fee = Fee.Common(Amount(value = feeAmount, blockchain = blockchain)),
destination = destinationAddress,
).copy(hash = dataToSign, extras = createExtras(walletManager, gasLimit, dataToSign))
@ -282,15 +282,15 @@ class TransactionManagerImpl(
val choosableFee = fee.data
val minProxyFee = ProxyFee(
gasLimit = (choosableFee.minimum as Fee.EthereumFee).gasLimit,
gasLimit = (choosableFee.minimum as Fee.Ethereum).gasLimit,
fee = convertToProxyAmount(amount = choosableFee.minimum.amount),
)
val normalProxyFee = ProxyFee(
gasLimit = (choosableFee.normal as Fee.EthereumFee).gasLimit,
gasLimit = (choosableFee.normal as Fee.Ethereum).gasLimit,
fee = convertToProxyAmount(amount = choosableFee.normal.amount),
)
val priorityProxyFee = ProxyFee(
gasLimit = (choosableFee.priority as Fee.EthereumFee).gasLimit,
gasLimit = (choosableFee.priority as Fee.Ethereum).gasLimit,
fee = convertToProxyAmount(amount = choosableFee.priority.amount),
)