Skip to content

Commit

Permalink
Point alchemy provider to mainnet fork
Browse files Browse the repository at this point in the history
We use the ethers.js alchemy-provider and we want this provider
to communicate with the forked mainnet when we turn on the
feature flag

It was also necessary to patch the chainID check mechanism
because to fork will not provide chainID 1
  • Loading branch information
Gergo Nagy committed Mar 5, 2022
1 parent 493a761 commit 3e09551
Show file tree
Hide file tree
Showing 4 changed files with 175 additions and 5 deletions.
2 changes: 1 addition & 1 deletion background/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@ethersproject/abstract-provider": "^5.5.1",
"@ethersproject/abstract-signer": "^5.5.0",
"@ethersproject/networks": "^5.5.1",
"@ethersproject/providers": "^5.5.1",
"@ethersproject/providers": "^5.5.3",
"@ethersproject/transactions": "^5.5.0",
"@ethersproject/web": "^5.5.1",
"@ledgerhq/devices": "^6.20.0",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"window-provider"
],
"dependencies": {
"@ethersproject/providers": "^5.5.3",
"@fortawesome/fontawesome-free": "^5.15.2",
"@tallyho/provider-bridge": "0.0.1",
"@tallyho/provider-bridge-shared": "0.0.1",
Expand Down
169 changes: 169 additions & 0 deletions patches/@ethersproject+providers+5.5.3.patch

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1575,10 +1575,10 @@
bech32 "1.1.4"
ws "7.4.6"

"@ethersproject/providers@^5.5.1":
version "5.5.2"
resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.5.2.tgz#131ccf52dc17afd0ab69ed444b8c0e3a27297d99"
integrity sha512-hkbx7x/MKcRjyrO4StKXCzCpWer6s97xnm34xkfPiarhtEUVAN4TBBpamM+z66WcTt7H5B53YwbRj1n7i8pZoQ==
"@ethersproject/providers@^5.5.3":
version "5.5.3"
resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.5.3.tgz#56c2b070542ac44eb5de2ed3cf6784acd60a3130"
integrity sha512-ZHXxXXXWHuwCQKrgdpIkbzMNJMvs+9YWemanwp1fA7XZEv7QlilseysPvQe0D7Q7DlkJX/w/bGA1MdgK2TbGvA==
dependencies:
"@ethersproject/abstract-provider" "^5.5.0"
"@ethersproject/abstract-signer" "^5.5.0"
Expand Down

0 comments on commit 3e09551

Please sign in to comment.