Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WCM] Using api.web3modal.com #1262

Merged
merged 5 commits into from
Jan 29, 2024
Merged

[WCM] Using api.web3modal.com #1262

merged 5 commits into from
Jan 29, 2024

Conversation

radeknovis
Copy link
Contributor

Replaces explorer api with api.web3modal.com. Also includes change to paginate response

@@ -52,6 +53,16 @@ final class SignPresenter: ObservableObject {
Web3Modal.present(from: nil)
}

func connectWalletWithWCM() {
Task {
WalletConnectModal.set(sessionParams: .init(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not see async context here, do you need Task?

deeplinkHandler: WalletDeeplinkHandler
) {
self.wallet = wallet
self.deeplinkHandler = deeplinkHandler
preferredPlatform = wallet.app.ios != nil ? .native : .browser
preferredPlatform = wallet.appStore != nil ? .native : .browser
}

func handle(_ event: Event) {
switch event {
case .onAppear:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

case .onAppear, .didTapUniversalLink, . didTapTryAgain:

// iOS 14 doesn't have extra separators below the list by default.
} else {
// To remove only extra separators below the list:
UITableView.appearance().tableFooterView = UIView()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can it affect client's app?

}

// To remove all separators including the actual ones:
UITableView.appearance().separatorStyle = .none
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same question

@radeknovis radeknovis merged commit 678fa51 into develop Jan 29, 2024
8 checks passed
@radeknovis radeknovis deleted the feat/wcm-api-update branch January 29, 2024 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants