Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

refactor: isolate WalletConnect instance creation #2103

Merged
merged 1 commit into from Jul 8, 2021

Conversation

geigerzaehler
Copy link
Contributor

We lift newWalletConnect() to the module-level so that it does not interact with internal Wallet state. Before, callbacks for the modal would set stateStore and internal state variables. This significantly simplifies the connection flow.

@geigerzaehler geigerzaehler marked this pull request as ready for review July 7, 2021 13:52
@geigerzaehler geigerzaehler requested a review from a team as a code owner July 7, 2021 13:52
Copy link
Contributor

@CodeSandwich CodeSandwich left a comment

Choose a reason for hiding this comment

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

Great! You must've experimented a lot with WalletConnect undocumented behavior to support these subtleties 🕵️

We lift `newWalletConnect()` to the module-level so that it does not
interact with internal `Wallet` state. Before, callbacks for the modal
would set `stateStore` and internal state varibales. This significantly
simplifies the connection flow.

Signed-off-by: Thomas Scholtes <thomas@monadic.xyz>
@geigerzaehler geigerzaehler merged commit b6a1141 into master Jul 8, 2021
@geigerzaehler geigerzaehler deleted the thomas/wallet-qr-modal branch July 8, 2021 10:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants