Skip to content

Conversation

@shawntobin
Copy link
Contributor

fixes #1124

Changes:

ResetExecute.tsx:

  • Removed the WalletConnect session check from within performReticket and instead now using 2 separate useEffects to ensure correct execution based on wallet type.

useWalletConnect.ts:

  • Removed PeerMeta state variable to reduce some state complexity since this value doesn't need to be returned by the hook anyway. I noticed an issue where it sometimes was showing null where we'd expect it to be set (re-renders setting it to null perhaps?), so rather than put in a fix for that now IMO it's fine to just remove. Deriving from ‘session’ when needed works as expected.

WalletConnect.tsx
Metamask.jsx

  • Deleted these components since they’re not being used. Bridge no longer renders a tab screen for Metamask or WalletConnect.

Tested successfully on mainnet with Zerion and Ledger.

useWalletConnect.ts:

- Removed PeerMeta state variable to reduce some state complexity since it’s not used outside of the hook definition anyway. I noticed an issue where it sometimes was returning null when it should have been set, so rather than put in a fix for this it might as well just be removed IMO. Deriving from ‘session’ when needed works as expected.

ResetExecute.tsx:

- Removed the WalletConnect session check from within performReticket and instead now using 2 separate useEffects to ensure correct execution based on wallet type. Other login methods shouldn’t need to wait for ‘connector’ and ‘session’, which are specific to WalletConnect.

WalletConnect.tsx
Metamask.jsx
- Deleted these components since they’re not being used. Bridge no longer renders a tab screen for Metamask or WalletConnect.

Tested successfully on mainnet with Zerion and Ledger.
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.

Transfer to master ticket not working with WalletConnect (L1 ship)

2 participants