Updated on 2026-08-14
This commit is contained in:
parent
154308b973
commit
e51453c99b
15 changed files with 173 additions and 68 deletions
|
|
@ -111,6 +111,7 @@ class NetworkFactory @Inject constructor(
|
|||
hasFiatFeeRate = blockchain.feePaidCurrency() !is FeePaidCurrency.FeeResource,
|
||||
canHandleTokens = canHandleTokens,
|
||||
transactionExtrasType = blockchain.getSupportedTransactionExtras(),
|
||||
nameResolvingType = blockchain.getNameResolvingType(),
|
||||
)
|
||||
}
|
||||
.getOrNull()
|
||||
|
|
@ -328,6 +329,13 @@ class NetworkFactory @Inject constructor(
|
|||
}
|
||||
}
|
||||
|
||||
private fun Blockchain.getNameResolvingType(): Network.NameResolvingType {
|
||||
return when (this) {
|
||||
Blockchain.Ethereum, Blockchain.EthereumTestnet -> Network.NameResolvingType.ENS
|
||||
else -> Network.NameResolvingType.NONE
|
||||
}
|
||||
}
|
||||
|
||||
@VisibleForTesting(otherwise = VisibleForTesting.NONE)
|
||||
fun createNetworkStandardType(blockchain: Blockchain) = getNetworkStandardType(blockchain)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue