From 40c151a4b5ac4d22994f9ba351b8733d1a749142 Mon Sep 17 00:00:00 2001 From: Artur Guseinov Date: Sat, 23 Dec 2023 16:46:26 +0300 Subject: [PATCH 1/2] WalletConnectSign import removed --- Sources/Web3Wallet/Web3WalletDecryptionService.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Sources/Web3Wallet/Web3WalletDecryptionService.swift b/Sources/Web3Wallet/Web3WalletDecryptionService.swift index e4786129f..88b355b3b 100644 --- a/Sources/Web3Wallet/Web3WalletDecryptionService.swift +++ b/Sources/Web3Wallet/Web3WalletDecryptionService.swift @@ -1,5 +1,4 @@ import Foundation -import WalletConnectSign public final class Web3WalletDecryptionService { enum Errors: Error { From c05c0ed7a9e3eebcec9e4c536aedc7d8a1b136c5 Mon Sep 17 00:00:00 2001 From: Radek Novak Date: Sat, 23 Dec 2023 17:01:00 +0100 Subject: [PATCH 2/2] Fix union with nil requiredChains --- .../Wallet/SessionProposal/SessionProposalInteractor.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Example/WalletApp/PresentationLayer/Wallet/SessionProposal/SessionProposalInteractor.swift b/Example/WalletApp/PresentationLayer/Wallet/SessionProposal/SessionProposalInteractor.swift index 34c0f9880..ece832c35 100644 --- a/Example/WalletApp/PresentationLayer/Wallet/SessionProposal/SessionProposalInteractor.swift +++ b/Example/WalletApp/PresentationLayer/Wallet/SessionProposal/SessionProposalInteractor.swift @@ -11,7 +11,7 @@ final class SessionProposalInteractor { let supportedRequiredChains = proposal.requiredNamespaces["eip155"]?.chains let supportedOptionalChains = proposal.optionalNamespaces?["eip155"]?.chains ?? [] - let supportedChains = supportedRequiredChains?.union(supportedOptionalChains) ?? [] + let supportedChains = (supportedRequiredChains ?? []).union(supportedOptionalChains) ?? [] let supportedAccounts = Array(supportedChains).map { Account(blockchain: $0, address: account.address)! }