Skip to content

Commit

Permalink
Fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
ilitteri committed Dec 22, 2023
1 parent 1ede21e commit dd8031c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion l1-contracts/scripts/initialize-bridges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const provider = web3Provider();
const testConfigPath = path.join(process.env.ZKSYNC_HOME as string, "etc/test_config/constant");
const ethTestConfig = JSON.parse(fs.readFileSync(`${testConfigPath}/eth.json`, { encoding: "utf-8" }));

const contractArtifactsPath = path.join(process.env.ZKSYNC_HOME as string, "era-contracts-labmda/l2-contracts/artifacts-zk/");
const contractArtifactsPath = path.join(process.env.ZKSYNC_HOME as string, "era-contracts-lambda/l2-contracts/artifacts-zk/");

Check failure on line 21 in l1-contracts/scripts/initialize-bridges.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `process.env.ZKSYNC_HOME·as·string,·"era-contracts-lambda/l2-contracts/artifacts-zk/"` with `⏎··process.env.ZKSYNC_HOME·as·string,⏎··"era-contracts-lambda/l2-contracts/artifacts-zk/"⏎`

Check failure on line 21 in l1-contracts/scripts/initialize-bridges.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `process.env.ZKSYNC_HOME·as·string,·"era-contracts-lambda/l2-contracts/artifacts-zk/"` with `⏎··process.env.ZKSYNC_HOME·as·string,⏎··"era-contracts-lambda/l2-contracts/artifacts-zk/"⏎`

Check failure on line 21 in l1-contracts/scripts/initialize-bridges.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `process.env.ZKSYNC_HOME·as·string,·"era-contracts-lambda/l2-contracts/artifacts-zk/"` with `⏎··process.env.ZKSYNC_HOME·as·string,⏎··"era-contracts-lambda/l2-contracts/artifacts-zk/"⏎`

const l2BridgeArtifactsPath = path.join(contractArtifactsPath, "cache-zk/solpp-generated-contracts/bridge/");

Expand Down
2 changes: 1 addition & 1 deletion l1-contracts/scripts/initialize-l2-weth-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const provider = web3Provider();
const testConfigPath = path.join(process.env.ZKSYNC_HOME as string, "etc/test_config/constant");
const ethTestConfig = JSON.parse(fs.readFileSync(`${testConfigPath}/eth.json`, { encoding: "utf-8" }));

const contractArtifactsPath = path.join(process.env.ZKSYNC_HOME as string, "era-contracts-labmda/l2-contracts/artifacts-zk/");
const contractArtifactsPath = path.join(process.env.ZKSYNC_HOME as string, "era-contracts-lambda/l2-contracts/artifacts-zk/");

Check failure on line 14 in l1-contracts/scripts/initialize-l2-weth-token.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `process.env.ZKSYNC_HOME·as·string,·"era-contracts-lambda/l2-contracts/artifacts-zk/"` with `⏎··process.env.ZKSYNC_HOME·as·string,⏎··"era-contracts-lambda/l2-contracts/artifacts-zk/"⏎`

Check failure on line 14 in l1-contracts/scripts/initialize-l2-weth-token.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `process.env.ZKSYNC_HOME·as·string,·"era-contracts-lambda/l2-contracts/artifacts-zk/"` with `⏎··process.env.ZKSYNC_HOME·as·string,⏎··"era-contracts-lambda/l2-contracts/artifacts-zk/"⏎`

Check failure on line 14 in l1-contracts/scripts/initialize-l2-weth-token.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `process.env.ZKSYNC_HOME·as·string,·"era-contracts-lambda/l2-contracts/artifacts-zk/"` with `⏎··process.env.ZKSYNC_HOME·as·string,⏎··"era-contracts-lambda/l2-contracts/artifacts-zk/"⏎`
const l2BridgeArtifactsPath = path.join(contractArtifactsPath, "cache-zk/solpp-generated-contracts/bridge/");
const openzeppelinTransparentProxyArtifactsPath = path.join(
contractArtifactsPath,
Expand Down
2 changes: 1 addition & 1 deletion l1-contracts/scripts/initialize-weth-bridges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const provider = web3Provider();
const testConfigPath = path.join(process.env.ZKSYNC_HOME as string, "etc/test_config/constant");
const ethTestConfig = JSON.parse(fs.readFileSync(`${testConfigPath}/eth.json`, { encoding: "utf-8" }));

const contractArtifactsPath = path.join(process.env.ZKSYNC_HOME as string, "era-contracts-labmda/l2-contracts/artifacts-zk/");
const contractArtifactsPath = path.join(process.env.ZKSYNC_HOME as string, "era-contracts-lambda/l2-contracts/artifacts-zk/");

Check failure on line 14 in l1-contracts/scripts/initialize-weth-bridges.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `process.env.ZKSYNC_HOME·as·string,·"era-contracts-lambda/l2-contracts/artifacts-zk/"` with `⏎··process.env.ZKSYNC_HOME·as·string,⏎··"era-contracts-lambda/l2-contracts/artifacts-zk/"⏎`

Check failure on line 14 in l1-contracts/scripts/initialize-weth-bridges.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `process.env.ZKSYNC_HOME·as·string,·"era-contracts-lambda/l2-contracts/artifacts-zk/"` with `⏎··process.env.ZKSYNC_HOME·as·string,⏎··"era-contracts-lambda/l2-contracts/artifacts-zk/"⏎`

Check failure on line 14 in l1-contracts/scripts/initialize-weth-bridges.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `process.env.ZKSYNC_HOME·as·string,·"era-contracts-lambda/l2-contracts/artifacts-zk/"` with `⏎··process.env.ZKSYNC_HOME·as·string,⏎··"era-contracts-lambda/l2-contracts/artifacts-zk/"⏎`
const l2BridgeArtifactsPath = path.join(contractArtifactsPath, "cache-zk/solpp-generated-contracts/bridge/");

const openzeppelinTransparentProxyArtifactsPath = path.join(
Expand Down
4 changes: 2 additions & 2 deletions l1-contracts/scripts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ export function applyL1ToL2Alias(address: string): string {
}

export function readBatchBootloaderBytecode() {
const bootloaderPath = path.join(process.env.ZKSYNC_HOME as string, "era-contracts-labmda/system-contracts/bootloader");
const bootloaderPath = path.join(process.env.ZKSYNC_HOME as string, "era-contracts-lambda/system-contracts/bootloader");

Check failure on line 80 in l1-contracts/scripts/utils.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `process.env.ZKSYNC_HOME·as·string,·"era-contracts-lambda/system-contracts/bootloader"` with `⏎····process.env.ZKSYNC_HOME·as·string,⏎····"era-contracts-lambda/system-contracts/bootloader"⏎··`

Check failure on line 80 in l1-contracts/scripts/utils.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `process.env.ZKSYNC_HOME·as·string,·"era-contracts-lambda/system-contracts/bootloader"` with `⏎····process.env.ZKSYNC_HOME·as·string,⏎····"era-contracts-lambda/system-contracts/bootloader"⏎··`

Check failure on line 80 in l1-contracts/scripts/utils.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `process.env.ZKSYNC_HOME·as·string,·"era-contracts-lambda/system-contracts/bootloader"` with `⏎····process.env.ZKSYNC_HOME·as·string,⏎····"era-contracts-lambda/system-contracts/bootloader"⏎··`
return fs.readFileSync(`${bootloaderPath}/build/artifacts/proved_batch.yul/proved_batch.yul.zbin`);
}

export function readSystemContractsBytecode(fileName: string) {
const systemContractsPath = path.join(process.env.ZKSYNC_HOME as string, "era-contracts-labmda/system-contracts");
const systemContractsPath = path.join(process.env.ZKSYNC_HOME as string, "era-contracts-lambda/system-contracts");
const artifact = fs.readFileSync(
`${systemContractsPath}/artifacts-zk/cache-zk/solpp-generated-contracts/${fileName}.sol/${fileName}.json`
);
Expand Down
2 changes: 1 addition & 1 deletion l2-contracts/src/deployL2Weth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const provider = web3Provider();
const testConfigPath = path.join(process.env.ZKSYNC_HOME as string, "etc/test_config/constant");
const ethTestConfig = JSON.parse(fs.readFileSync(`${testConfigPath}/eth.json`, { encoding: "utf-8" }));

const contractArtifactsPath = path.join(process.env.ZKSYNC_HOME as string, "era-contracts-labmda/l2-contracts/artifacts-zk/");
const contractArtifactsPath = path.join(process.env.ZKSYNC_HOME as string, "era-contracts-lambda/l2-contracts/artifacts-zk/");
const l2BridgeArtifactsPath = path.join(contractArtifactsPath, "cache-zk/solpp-generated-contracts/bridge/");

const openzeppelinTransparentProxyArtifactsPath = path.join(
Expand Down

0 comments on commit dd8031c

Please sign in to comment.