Commit 6d9011ec authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

contracts-bedrock: Fix provider usage in L2OutputOracle deployment script (#3148)

* ci: Tag cloudbuild images with the commit SHA

* contracts-bedrock: Fix provider usage in L2OutputOracle deployment script

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

Builds on #3147.
parent b5b6b316
...@@ -10,7 +10,7 @@ const deployFn: DeployFunction = async (hre) => { ...@@ -10,7 +10,7 @@ const deployFn: DeployFunction = async (hre) => {
const { deployer } = await hre.getNamedAccounts() const { deployer } = await hre.getNamedAccounts()
const { deployConfig } = hre const { deployConfig } = hre
const l1 = hre.ethers.getDefaultProvider() const l1 = hre.ethers.provider
const l1StartingBlock = await l1.getBlock(deployConfig.l1StartingBlockTag) const l1StartingBlock = await l1.getBlock(deployConfig.l1StartingBlockTag)
if (l1StartingBlock === null) { if (l1StartingBlock === null) {
throw new Error(`Cannot fetch block tag ${deployConfig.l1StartingBlockTag}`) throw new Error(`Cannot fetch block tag ${deployConfig.l1StartingBlockTag}`)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment