1- import { parseEther } from "ethers/lib/utils " ;
1+ import { parseEther } from "ethers" ;
22import { HardhatRuntimeEnvironment } from "hardhat/types" ;
33import { DeployFunction } from "hardhat-deploy/types" ;
44import getContractAddress from "../../deploy-helpers/getContractAddress" ;
@@ -25,7 +25,7 @@ const paramsByChainId = {
2525 epochPeriod : 600 , // 10 min
2626 challengePeriod : 600 , // 10 min
2727 numEpochTimeout : 24 , // 6 hours
28- amb : ethers . constants . AddressZero ,
28+ amb : ethers . ZeroAddress ,
2929 sequencerDelayLimit : 86400 ,
3030 sequencerFutureLimit : 3600 ,
3131 maxMissingBlocks : 10000000000000 ,
@@ -36,7 +36,6 @@ const paramsByChainId = {
3636const deployOutbox : DeployFunction = async ( hre : HardhatRuntimeEnvironment ) => {
3737 const { ethers, deployments, getNamedAccounts, getChainId, config } = hre ;
3838 const { deploy } = deployments ;
39- const { providers } = ethers ;
4039
4140 // fallback to hardhat node signers on local network
4241 const deployer = ( await getNamedAccounts ( ) ) . deployer ?? ( await hre . ethers . getSigners ( ) ) [ 0 ] . address ;
@@ -77,7 +76,7 @@ const deployOutbox: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
7776 challengePeriod,
7877 numEpochTimeout,
7978 amb,
80- ethers.constants.AddressZero ,
79+ ethers.ZeroAddress ,
8180 sequencerLimit,
8281 maxMissingBlocks,
8382 routerChainId,
@@ -92,14 +91,14 @@ const deployOutbox: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
9291 // ----------------------------------------------------------------------------------------------
9392 const liveDeployer = async ( ) => {
9493 const gasOptions = {
95- maxFeePerGas : ethers . utils . parseUnits ( "1" , "gwei" ) ,
96- maxPriorityFeePerGas : ethers . utils . parseUnits ( "1" , "gwei" ) ,
94+ maxFeePerGas : String ( ethers . parseUnits ( "1" , "gwei" ) ) ,
95+ maxPriorityFeePerGas : String ( ethers . parseUnits ( "1" , "gwei" ) ) ,
9796 } ;
9897
99- const senderChainProvider = new providers . JsonRpcProvider ( senderNetworks [ ReceiverChains [ chainId ] ] . url ) ;
98+ const senderChainProvider = new ethers . JsonRpcProvider ( senderNetworks [ ReceiverChains [ chainId ] ] . url ) ;
10099 let nonce = await senderChainProvider . getTransactionCount ( deployer ) ;
101100
102- const routerChainProvider = new providers . JsonRpcProvider ( routerNetworks [ ReceiverChains [ chainId ] ] . url ) ;
101+ const routerChainProvider = new ethers . JsonRpcProvider ( routerNetworks [ ReceiverChains [ chainId ] ] . url ) ;
103102 let nonceRouter = await routerChainProvider . getTransactionCount ( deployer ) ;
104103
105104 const routerAddress = getContractAddress ( deployer , nonceRouter ) ;
0 commit comments