Skip to content

Commit

Permalink
Merge pull request #1253 from WalletConnect/rename-w3w-client-method
Browse files Browse the repository at this point in the history
rename register method
  • Loading branch information
llbartekll committed Dec 7, 2023
2 parents b57fe00 + dee1419 commit 62471fc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ final class ConfigurationService {
Web3Wallet.configure(metadata: metadata, crypto: DefaultCryptoProvider(), environment: BuildConfiguration.shared.apnsEnvironment)

Notify.configure(
groupIdentifier: "group.com.walletconnect.sdk",
environment: BuildConfiguration.shared.apnsEnvironment,
crypto: DefaultCryptoProvider()
)
Expand Down
1 change: 0 additions & 1 deletion Sources/WalletConnectNotify/Notify.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public class Notify {
/// Wallet's configuration method
static public func configure(
pushHost: String = "echo.walletconnect.com",
groupIdentifier: String,
environment: APNSEnvironment,
crypto: CryptoProvider,
notifyHost: String = "notify.walletconnect.com",
Expand Down
4 changes: 2 additions & 2 deletions Sources/Web3Wallet/Web3WalletClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public class Web3WalletClient {
try authClient.getPendingRequests()
}

public func registerPushClient(deviceToken: Data, enableEncrypted: Bool = false) async throws {
public func register(deviceToken: Data, enableEncrypted: Bool = false) async throws {
try await pushClient.register(deviceToken: deviceToken, enableEncrypted: enableEncrypted)
}

Expand All @@ -236,7 +236,7 @@ public class Web3WalletClient {

#if DEBUG
extension Web3WalletClient {
public func registerPushClient(deviceToken: String) async throws {
public func register(deviceToken: String, enableEncrypted: Bool = false) async throws {
try await pushClient.register(deviceToken: deviceToken)
}
}
Expand Down

0 comments on commit 62471fc

Please sign in to comment.