Updated on 2026-08-14

This commit is contained in:
Tangem 2025-01-23 02:58:04 +05:00
parent 4c3e3e6fdf
commit 4c891a06aa
3 changed files with 6 additions and 4 deletions

View file

@ -338,7 +338,9 @@ internal class DefaultLegacyWalletConnectRepository(
optionalNamespace.key to Wallet.Model.Namespace.Session(
accounts = accountsOptional.distinct(),
methods = methods,
chains = userChains.keys.toList(),
chains = userChains.keys
.filter { it.startsWith(optionalNamespace.key) }
.toList(),
events = optionalNamespace.value.events,
)
}

View file

@ -155,8 +155,8 @@ class WalletConnectInteractor(
return@onEach
}
val networksFormatted = (wcEvent.requiredChainIds + wcEvent.optionalChainIds)
.distinct()
.mapNotNull { blockchainHelper.chainIdToFullNameOrNull(it) }
.distinct()
.toString()
handler.onProposalReceived(proposal = wcEvent, networksFormatted = networksFormatted)
}