Updated on 2026-08-14
This commit is contained in:
parent
799a38655e
commit
4570bc334c
54 changed files with 178 additions and 183 deletions
|
|
@ -38,7 +38,7 @@ internal class DefaultAllowanceRepository(
|
|||
allowance >= requiredAmount -> AllowanceInfo.Enough(allowance)
|
||||
allowance > BigDecimal.ZERO && allowance < requiredAmount &&
|
||||
BlockchainUtils.isTetherInEthereum(
|
||||
blockchainId = cryptoCurrency.network.rawId,
|
||||
networkId = cryptoCurrency.network.rawId,
|
||||
contractAddress = cryptoCurrency.contractAddress,
|
||||
) -> AllowanceInfo.ResetNeeded(allowance, requiredAmount)
|
||||
else -> AllowanceInfo.NotEnough(allowance, requiredAmount)
|
||||
|
|
|
|||
|
|
@ -312,7 +312,7 @@ internal class DefaultTransactionRepository(
|
|||
nonce: BigInteger?,
|
||||
gasLimit: BigInteger?,
|
||||
): TransactionExtras {
|
||||
val blockchain = Blockchain.fromNetworkId(networkId = network.backendId)
|
||||
val blockchain = Blockchain.fromNetworkId(networkId = network.rawId)
|
||||
?: error("Blockchain not found")
|
||||
return when {
|
||||
blockchain.isEvm() -> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue