Skip to content

Commit

Permalink
contracts-bedrock: Fix provider usage in L2OutputOracle deployment sc…
Browse files Browse the repository at this point in the history
…ript

`getDefaultProvider()` returns a fallback mainnet provider, which doesn't work.

Builds on #3147.
  • Loading branch information
mslipper committed Aug 1, 2022
1 parent e77cc13 commit 7e2a715
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ const deployFn: DeployFunction = async (hre) => {
const { deployer } = await hre.getNamedAccounts()
const { deployConfig } = hre

const l1 = hre.ethers.getDefaultProvider()
const l1 = hre.ethers.provider
const l1StartingBlock = await l1.getBlock(deployConfig.l1StartingBlockTag)
if (l1StartingBlock === null) {
throw new Error(`Cannot fetch block tag ${deployConfig.l1StartingBlockTag}`)
}

return

await deploy('L2OutputOracleProxy', {
contract: 'Proxy',
from: deployer,
Expand Down

0 comments on commit 7e2a715

Please sign in to comment.