From 3952a3b9a0265565390a803a86b6edef33754081 Mon Sep 17 00:00:00 2001 From: Radek Novak Date: Thu, 1 Feb 2024 12:07:24 +0100 Subject: [PATCH] Fix Cocoapods --- Sources/Web3Modal/Core/Web3ModalClient.swift | 6 ++++-- Web3Modal.podspec | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Sources/Web3Modal/Core/Web3ModalClient.swift b/Sources/Web3Modal/Core/Web3ModalClient.swift index 051f280..2d73561 100644 --- a/Sources/Web3Modal/Core/Web3ModalClient.swift +++ b/Sources/Web3Modal/Core/Web3ModalClient.swift @@ -1,4 +1,6 @@ -import CoinbaseWalletSDK +import class CoinbaseWalletSDK.CoinbaseWalletSDK +import struct CoinbaseWalletSDK.Action +import struct CoinbaseWalletSDK.ActionError import Combine import Foundation import UIKit @@ -244,7 +246,7 @@ public class Web3ModalClient { /// For sending JSON-RPC requests to wallet. /// - Parameters: /// - params: Parameters defining request and related session - public func request(params: WalletConnectSign.Request) async throws { + public func request(params: Request) async throws { do { try await signClient.request(params: params) } catch { diff --git a/Web3Modal.podspec b/Web3Modal.podspec index 88a8c09..2d5007c 100644 --- a/Web3Modal.podspec +++ b/Web3Modal.podspec @@ -31,6 +31,7 @@ Pod::Spec.new do |spec| ss.dependency 'Web3Modal/Web3ModalBackport' ss.dependency 'WalletConnectSwiftV2/WalletConnectSign', '~> 1.9.0' ss.dependency 'DSF_QRCode', '~> 16.1.1' + ss.dependency 'CoinbaseWalletSDK', '~> 1.0.4' ss.resource_bundles = { 'Web3Modal' => ['Sources/Web3Modal/Resources/*'] } end