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

[WalletApp] Small fixes #741

Merged
merged 2 commits into from
Mar 9, 2023
Merged

[WalletApp] Small fixes #741

merged 2 commits into from
Mar 9, 2023

Conversation

alexander-lsvk
Copy link
Contributor

Throw error when method is not implemented, update UI for requested/optional namespaces

Due Dilligence

  • Breaking change
  • Requires a documentation update

Comment on lines +6 to +15
do {
let result = try Signer.sign(request: sessionRequest)
try await Web3Wallet.instance.respond(
topic: sessionRequest.topic,
requestId: sessionRequest.id,
response: .response(result)
)
} catch {
throw error
}
Copy link
Contributor

Choose a reason for hiding this comment

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

what do we need do catch block here?

Copy link
Contributor Author

@alexander-lsvk alexander-lsvk Mar 9, 2023

Choose a reason for hiding this comment

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

Just to pass an error to the top level for presenting it with alert on UI

Copy link
Contributor

Choose a reason for hiding this comment

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

but wouldn't it work the same way if it just throws in line 7 or 8?

@alexander-lsvk alexander-lsvk merged commit 740be3e into develop Mar 9, 2023
@alexander-lsvk alexander-lsvk deleted the wallet-app-proposals branch March 9, 2023 09:34
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