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

Fallback to supported session events for wallet in WC v2 #5098

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

jinchung
Copy link
Member

@jinchung jinchung commented Oct 4, 2023

Fixes APP-842

@linear
Copy link

linear bot commented Oct 4, 2023

@jinchung jinchung requested a review from skylarbarrera October 4, 2023 17:59
@@ -502,7 +504,9 @@ export async function onSessionProposal(
);

// we only support EVM chains rn
const requiredNamespace = requiredNamespaces.eip155;
const supportedEvents =
requiredNamespaces?.eip155?.events || SUPPORTED_SESSION_EVENTS;
Copy link
Contributor

Choose a reason for hiding this comment

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

with the new WC usage this should include optionalNamespaces as the first value

Copy link
Member Author

Choose a reason for hiding this comment

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

we will revisit the other session events and confirm we support them (as they often show up in the optionalNamespaces) and then replace this with the full SUPPORTED_SESSION_EVENTS list - will be in a separate PR

@jinchung jinchung merged commit 07879fb into develop Oct 4, 2023
4 of 5 checks passed
@jinchung jinchung deleted the @jin/wc-empty-required-namespace branch October 4, 2023 19:08
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