Skip to content

Commit

Permalink
feat(gas-estimate): Minor fixes, add the beta explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
qbzzt committed Dec 20, 2022
1 parent 34f5958 commit 1742849
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sdk-estimate-gas/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ const argv = yargs
// All of those choices are Optimism:
// mainnet - Optimism Mainnet, the production network
// goerli - Optimism Goerli, the main test network
// bedrock-alpha - Alpha version of Optimism Bedrock, our next release
choices: ["mainnet", "goerli", "bedrock-alpha"],
// bedrock-beta - Beta version of Optimism Bedrock, our next release
choices: ["mainnet", "goerli", "bedrock-beta"],
description: 'Optimistm network to use'
}).
option('verify', {
Expand All @@ -151,15 +151,15 @@ Read the [JSON file](./Greeter.json) to know how to use the `Greeter` contract.
const greeterAddrs = {
"mainnet": "0xcf210488dad6da5fe54d260c45253afc3a9e708c",
"goerli": "0x106941459a8768f5a92b770e280555faf817576f",
"bedrock-alpha": "0x6D86Ae3e08960f04932Ec8e38C5Ac692351114Ba"
"bedrock-beta": "0xC0836cCc8FBa87637e782Dde6e6572aD624fb984"
}
```

Addresses for the Greeter contracts:

- [Mainnet](https://optimistic.etherscan.io/address/0xcf210488dad6da5fe54d260c45253afc3a9e708c#code)
- [Goerli](https://goerli-optimism.etherscan.io/address/0x106941459a8768f5a92b770e280555faf817576f#code)
- [Bedrock Alpha](https://blockscout.com/optimism/bedrock-alpha/address/0x6D86Ae3e08960f04932Ec8e38C5Ac692351114Ba/contracts#address-tabs)
- [Bedrock Beta](https://blockscout.com/optimism/bedrock-beta/address/0xC0836cCc8FBa87637e782Dde6e6572aD624fb984)


```js
Expand All @@ -185,8 +185,8 @@ Return a [Promise](https://www.w3schools.com/js/js_promise.asp) that gets resolv
const getSigner = async () => {
let endpointUrl;

if (argv.network == 'bedrock-alpha')
endpointUrl = 'https://alpha-1-replica-0.bedrock-goerli.optimism.io'
if (argv.network == 'bedrock-beta')
endpointUrl = 'https://bedrock-beta-1-replica-0.optimism.io'
if (argv.network == 'goerli')
endpointUrl =
process.env.ALCHEMY_API_KEY ?
Expand Down

0 comments on commit 1742849

Please sign in to comment.