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: window. rainbow providers #1613

Merged
merged 5 commits into from
Jul 4, 2024
Merged

fix: window. rainbow providers #1613

merged 5 commits into from
Jul 4, 2024

Conversation

estebanmino
Copy link
Contributor

@estebanmino estebanmino commented Jul 3, 2024

Fixes BX-####
Figma link (if any):

What changed (plus any additional context for devs)

window.rainbow.providers was only defined once at the beginning, so any updates to rnbwWalletRouter.providers won't be reflected in window.rainbow.providers, in which case were rainbow provider is window.ethereum the window.ethereum.providers would only have the first definition of window.rainbow.providers at the beginning

EDIT

ended up removing isMetaMask flag when announceProvider

Screen recordings / screenshots

What to test

@magiziz
Copy link
Contributor

magiziz commented Jul 3, 2024

When testing with manifold and 1inch it seems like giving me these errors:

image image

Copy link

github-actions bot commented Jul 3, 2024

Here's the packed extension for this build:
node_modules.tar.gz
rainbowbx-4ec33ee1425e23d2c4f301e0bd0402f813573a19
screenshots

Copy link

github-actions bot commented Jul 3, 2024

Here's the packed extension for this build:
node_modules.tar.gz
rainbowbx-8072ba6425772907a0d775f132880b3a7615ab1d
screenshots

Copy link

github-actions bot commented Jul 3, 2024

Here's the packed extension for this build:
rainbowbx-b11a2caa92d13aff11cce8f2ed142adfb92405f8

Copy link
Member

@BrodyHughes BrodyHughes left a comment

Choose a reason for hiding this comment

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

tested this on sushiswap and warpcast

Copy link
Contributor

@magiziz magiziz left a comment

Choose a reason for hiding this comment

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

lgtm

@DanielSinclair DanielSinclair added this pull request to the merge queue Jul 3, 2024
Merged via the queue into master with commit 4d6baad Jul 4, 2024
17 checks passed
@DanielSinclair DanielSinclair deleted the @esteban/providers branch July 4, 2024 00:21
Copy link

github-actions bot commented Jul 4, 2024

Here's the packed extension for this build:
node_modules.tar.gz
rainbowbx-4d6baad50ce738e08e9dcadca5a2aa98120dd437

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.

5 participants