Skip to content

Commit

Permalink
Fix upgrade l2 bridge script (matter-labs#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
StanislavBreadless authored Jan 18, 2024
1 parent cc8fe35 commit 2dfbc6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions l2-contracts/src/upgradeBridgeImpl.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as hre from "hardhat";
import "@nomiclabs/hardhat-ethers";
import { Command } from "commander";
import { Wallet, ethers, BigNumber } from "ethers";
import * as fs from "fs";
import * as hre from "hardhat";
import * as path from "path";
import { Provider } from "zksync-web3";
import { REQUIRED_L1_TO_L2_GAS_PER_PUBDATA_LIMIT } from "zksync-web3/build/src/utils";
Expand Down Expand Up @@ -80,7 +80,7 @@ async function getWETHAddress() {
}

async function getTransparentProxyUpgradeCalldata(target: string) {
const proxyArtifact = await hre.artifacts.readArtifact("TransparentUpgradeableProxy");
const proxyArtifact = await hre.artifacts.readArtifact("ITransparentUpgradeableProxy");
const proxyInterface = new ethers.utils.Interface(proxyArtifact.abi);

return proxyInterface.encodeFunctionData("upgradeTo", [target]);
Expand Down

0 comments on commit 2dfbc6b

Please sign in to comment.