Skip to content

Commit

Permalink
fix Auth connect method (#229)
Browse files Browse the repository at this point in the history
* remove getAcknowledgedSessions

* rename method

* fix connect() bug
  • Loading branch information
llbartekll authored May 25, 2022
1 parent 5f3bd61 commit 9606a9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Example/ExampleApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@
CODE_SIGN_ENTITLEMENTS = Wallet.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 11;
CURRENT_PROJECT_VERSION = 12;
DEVELOPMENT_TEAM = W5R8AG9K22;
INFOPLIST_FILE = ExampleApp/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
Expand All @@ -754,7 +754,7 @@
CODE_SIGN_ENTITLEMENTS = Wallet.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 11;
CURRENT_PROJECT_VERSION = 12;
DEVELOPMENT_TEAM = W5R8AG9K22;
INFOPLIST_FILE = ExampleApp/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
Expand Down
2 changes: 1 addition & 1 deletion Sources/WalletConnectAuth/Auth/Auth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ extension Auth {
/// - Parameter topic: Optional parameter - use it if you already have an established pairing with peer client.
/// - Returns: Pairing URI that should be shared with responder out of bound. Common way is to present it as a QR code. Pairing URI will be nil if you are going to establish a session on existing Pairing and `topic` function parameter was provided.
public func connect(requiredNamespaces: [String : ProposalNamespace], topic: String? = nil) async throws -> String? {
try await client.connect(requiredNamespaces: requiredNamespaces)
try await client.connect(requiredNamespaces: requiredNamespaces, topic: topic)
}

/// For responder to receive a session proposal from a proposer
Expand Down

0 comments on commit 9606a9a

Please sign in to comment.