Skip to content

Commit

Permalink
web3.ts: change infura provider to ethereum
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Geihs committed Mar 31, 2024
1 parent 24deb25 commit 3819473
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ npm run generate-contract-flat # generate single-file contracts

## Testnet URLs

### Ethereum

- [EARTH](https://etherscan.io/address/0x8FCF8BB7080C19f91Ebe6E1F901155e00d208E9D)

### Sepolia

- [EARTH](https://sepolia.etherscan.io/address/0x689ccA9CcD739275069fb7FC0Ad4c08Dd66f9E70)
Expand Down
2 changes: 1 addition & 1 deletion src/web3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export async function initWeb3(): Promise<EARTH> {
var provider: ethers.providers.Provider;
var signer: ethers.Signer;
if ((document.getElementById('connector-infura') as HTMLInputElement).checked) {
provider = new ethers.providers.InfuraProvider("sepolia", "de775d75c32e4d7f98f1e73caff8c616");
provider = new ethers.providers.InfuraProvider("ethereum", "de775d75c32e4d7f98f1e73caff8c616");
signer = null;
} else {
// Instantiate Ethereum provider.
Expand Down

0 comments on commit 3819473

Please sign in to comment.