Skip to content

Commit

Permalink
Small fix upgrade rollupManager pessimistic script
Browse files Browse the repository at this point in the history
  • Loading branch information
ignasirv committed Oct 25, 2024
1 parent 0014bec commit a850b57
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions upgrade/upgradePessimistic/upgradePessimistic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ async function main() {
} else {
console.log("Multiplier gas used: ", upgradeParameters.multiplierGas);
async function overrideFeeData() {
const feedata = await ethers.provider.getFeeData();
const feeData = await ethers.provider.getFeeData();
return new ethers.FeeData(
null,
((feedata.maxFeePerGas as bigint) * BigInt(upgradeParameters.multiplierGas)) / 1000n,
((feedata.maxPriorityFeePerGas as bigint) * BigInt(upgradeParameters.multiplierGas)) / 1000n
((feeData.maxFeePerGas as bigint) * BigInt(upgradeParameters.multiplierGas)) / 1000n,
((feeData.maxPriorityFeePerGas as bigint) * BigInt(upgradeParameters.multiplierGas)) / 1000n
);
}
currentProvider.getFeeData = overrideFeeData;
Expand Down Expand Up @@ -99,7 +99,7 @@ async function main() {
// prepare upgrades

// Upgrade to rollup manager
const PolygonRollupManagerFactory = await ethers.getContractFactory("PolygonRollupManager");
const PolygonRollupManagerFactory = await ethers.getContractFactory("PolygonRollupManager", deployer);

const implRollupManager = await upgrades.prepareUpgrade(rollupManagerAddress, PolygonRollupManagerFactory, {
constructorArgs: [globalExitRootManagerAddress, polAddress, bridgeAddress],
Expand Down

0 comments on commit a850b57

Please sign in to comment.