Skip to content

Commit

Permalink
Merge pull request #1110 from WalletConnect/switch-to-notify-prod-url
Browse files Browse the repository at this point in the history
Switch to notify prod url
  • Loading branch information
llbartekll authored Sep 18, 2023
2 parents 4931ecd + 25869f5 commit c6a7448
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Example/IntegrationTests/Push/NotifyTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class NotifyTests: XCTestCase {

var walletNotifyClientA: NotifyClient!

let gmDappDomain = "dev.gm.walletconnect.com"
let gmDappDomain = "gm.walletconnect.com"

let pk = try! EthereumPrivateKey()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ struct ListingViewModel: Identifiable {
}

var appDomain: String? {
// TODO: Remove after gm release
let url = listing.homepage == "https://notify.gm.walletconnect.com" ? "https://dev.gm.walletconnect.com" : listing.homepage
let url = listing.homepage
return URL(string: url)?.host
}
}
5 changes: 5 additions & 0 deletions NotifyTests.xctestplan
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
"testTargets" : [
{
"selectedTests" : [
"NotifyTests\/testNotifyServerSubscribeAndNotifies()",
"NotifyTests\/testNotifySubscriptionChanged()",
"NotifyTests\/testNotifyWatchSubscriptions()",
"NotifyTests\/testWalletCreatesAndUpdatesSubscription()",
"NotifyTests\/testWalletCreatesSubscription()",
"PushTests\/testNotifyServerSubscribeAndNotifies()",
"PushTests\/testWalletCreatesAndUpdatesSubscription()"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class NotifyWatchSubscriptionsRequester {
private let kms: KeyManagementService
private let logger: ConsoleLogging
private let webDidResolver: NotifyWebDidResolver
private let notifyServerUrl = "dev.notify.walletconnect.com"
private let notifyServerUrl = "notify.walletconnect.com"
private var account: Account?
private var publishers = Set<AnyCancellable>()

Expand Down
4 changes: 0 additions & 4 deletions Sources/Web3Inbox/NotifyClientProxy/NotifyClientProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ final class NotifyClientProxy {
try await respond(request: request)
case .subscribe:
let params = try parse(SubscribeRequest.self, params: request.params)
// TODO: Remove after
let appDomain = params.appDomain == "notify.gm.walletconnect.com" ? "dev.gm.walletconnect.com" : params.appDomain
try await client.subscribe(appDomain: appDomain, account: params.account)
try await respond(request: request)
case .getActiveSubscriptions:
Expand All @@ -46,8 +44,6 @@ final class NotifyClientProxy {
try await respond(request: request)
case .register:
let params = try parse(RegisterRequest.self, params: request.params)
// TODO: Remove after
let appDomain = params.domain == "notify.gm.walletconnect.com" ? "dev.gm.walletconnect.com" : params.domain
try await client.register(account: params.account, domain: params.domain, isLimited: params.isLimited, onSign: onSign)
try await respond(request: request)
}
Expand Down

0 comments on commit c6a7448

Please sign in to comment.