Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Fix web3 race #76

Merged
merged 1 commit into from
Oct 22, 2020
Merged

Fix web3 race #76

merged 1 commit into from
Oct 22, 2020

Conversation

piazzatron
Copy link
Contributor

@piazzatron piazzatron commented Oct 22, 2020

Description

Attempts to address this.web3.eth.Contract is not a constructor error by having internal web3 stick a web3Loaded flag on the window, and testing for that in backend setup, rather than the existence of window.Web3.

Dragons

Nah

How Has This Been Tested?

Tested locally

Copy link
Member

@raymondjacobson raymondjacobson left a comment

Choose a reason for hiding this comment

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

DUH! Great solution :)

@audius-infra
Copy link
Collaborator

Preview this change https://frontend-demo.audius.co/piazz-web3-race

@piazzatron piazzatron merged commit 10b2db2 into master Oct 22, 2020
@piazzatron piazzatron deleted the piazz-web3-race branch October 22, 2020 22:14
sddioulde pushed a commit that referenced this pull request Sep 29, 2021
sliptype pushed a commit that referenced this pull request Feb 11, 2022
sliptype pushed a commit that referenced this pull request Feb 12, 2022
sliptype pushed a commit that referenced this pull request Feb 12, 2022
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.

3 participants