Updated on 2026-08-14
This commit is contained in:
parent
b2be9ebab0
commit
340bc656c7
24 changed files with 63 additions and 87 deletions
|
|
@ -74,6 +74,7 @@ class NetworkFactory @Inject constructor(
|
|||
blockchain = blockchain,
|
||||
excludedBlockchains = excludedBlockchains,
|
||||
),
|
||||
shouldCheckChia = false,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -128,9 +129,10 @@ class NetworkFactory @Inject constructor(
|
|||
derivationPath: Network.DerivationPath,
|
||||
canHandleTokens: Boolean,
|
||||
accountIndex: DerivationIndex? = null,
|
||||
shouldCheckChia: Boolean = true,
|
||||
): Network? {
|
||||
if (!blockchain.isBlockchainSupported()) return null
|
||||
if (blockchain == Blockchain.Chia && accountIndex != DerivationIndex.Main) return null
|
||||
if (shouldCheckChia && blockchain == Blockchain.Chia && accountIndex != DerivationIndex.Main) return null
|
||||
|
||||
return runCatching {
|
||||
Network(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue