From 1e19fc9e22b8e79c49425ac83331cd551287307f Mon Sep 17 00:00:00 2001 From: StefanIliev545 Date: Thu, 21 Sep 2023 16:01:07 +0300 Subject: [PATCH] short fixes --- .../deployment_scripts/funding/layer1/001_fund_accounts.ts | 2 +- .../testnet/layer2/001_whitelist_tokens.ts | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/contracts/deployment_scripts/funding/layer1/001_fund_accounts.ts b/contracts/deployment_scripts/funding/layer1/001_fund_accounts.ts index 6707977ebd..fa7d26ebfa 100644 --- a/contracts/deployment_scripts/funding/layer1/001_fund_accounts.ts +++ b/contracts/deployment_scripts/funding/layer1/001_fund_accounts.ts @@ -11,7 +11,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { const messageBusAddress = process.env.MESSAGE_BUS_ADDRESS || "0x3FA8A7A039519602eBA00D443a14C0eb2358359a" const messageBus = (await hre.ethers.getContractFactory('MessageBus')).attach(messageBusAddress) - const prefundAmount = hre.ethers.utils.parseEther("0.05"); + const prefundAmount = hre.ethers.utils.parseEther("2"); const tx = await messageBus.populateTransaction.sendValueToL2(deployer, prefundAmount, { value: prefundAmount }); diff --git a/contracts/deployment_scripts/testnet/layer2/001_whitelist_tokens.ts b/contracts/deployment_scripts/testnet/layer2/001_whitelist_tokens.ts index d4e106d847..397e11db8a 100644 --- a/contracts/deployment_scripts/testnet/layer2/001_whitelist_tokens.ts +++ b/contracts/deployment_scripts/testnet/layer2/001_whitelist_tokens.ts @@ -96,9 +96,14 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { await new Promise(async (resolve, fail)=> { setTimeout(fail, 30_000) const messageBusContract = (await hre.ethers.getContractAt('MessageBus', '0x526c84529b2b8c11f57d93d3f5537aca3aecef9b')); + const gasLimit = await messageBusContract.estimateGas.verifyMessageFinalized(messages[1], { + maxFeePerGas: 2, + }) try { while (await messageBusContract.callStatic.verifyMessageFinalized(messages[1], { maxFeePerGas: 2, + gasLimit: gasLimit.mul(2), + from: l2Accounts.deployer }) != true) { console.log(`Messages not stored on L2 yet, retrying...`); await sleep(1_000); @@ -108,8 +113,6 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { fail(err) } - - resolve(true); });