Updated on 2026-08-14
This commit is contained in:
parent
4c3e3e6fdf
commit
4c891a06aa
3 changed files with 6 additions and 4 deletions
|
|
@ -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,
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue