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

fix: do not default to mm provider when toggle is off #1079

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

estebanmino
Copy link
Member

@estebanmino estebanmino commented Oct 23, 2023

Fixes BX-1088
Figma link (if any):

What changed (plus any additional context for devs)

now:

when our default rnbw provider toggle is off and the user has metamask, we're relaying requests to mm provider
this was probably causing the issue, users had the tooggle off, eip6963 was picking rainbow correctly but we were relaying requests to mm

with this pr:
when our default rnbw provider toggle is off and the user has metamask we're still using rainbow provider if the dapp pick the rainbow provider
this won't affect the window.ethereum override when the rnbw by default tooggle is on since that logic is happening on inpage

Screen recordings / screenshots

What to test

@estebanmino estebanmino marked this pull request as ready for review October 23, 2023 16:49
@linear
Copy link

linear bot commented Oct 23, 2023

BX-1088 6963 should ignore Default Wallet provider toggle

Goal:

  • For EIP-6963 provider flow, ignore the MetaMask/default wallet proxy and only expose the Rainbow provider

Report from Uniswap:

hello, I’m noticing an issue with the eip6963 implementation on the rainbow extension. I think your eip6963 provider should only point to rainbow & shouldn’t be taking the default wallet setting into account, that setting should only affect window.ethereum

Screen Recording 2023-10-19 at 11.38.30 AM.mov

Copy link
Member

@derHowie derHowie left a comment

Choose a reason for hiding this comment

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

👌

Copy link
Contributor

@greg-schrammel greg-schrammel left a comment

Choose a reason for hiding this comment

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

gotha! nice

@github-actions
Copy link

Here's the packed extension for this build:
rainbowbx-19e01a528902a65054a42010e74b56c46df2b29c.zip

@DanielSinclair
Copy link
Collaborator

Looks good to me 👌

@estebanmino estebanmino merged commit c997fa0 into master Oct 23, 2023
16 checks passed
@estebanmino estebanmino deleted the @esteban/donot-default-to-mm-provider branch October 23, 2023 17:18
@github-actions
Copy link

Here's the packed extension for this build:
rainbowbx-c997fa0dd2470b667bc5244c1e221d22b3eeb0e4.zip

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.

4 participants