Skip to content

Commit

Permalink
update bootloader path in test
Browse files Browse the repository at this point in the history
  • Loading branch information
koloz193 committed Oct 10, 2024
1 parent cfbbff9 commit 8fac87c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/tests/upgrade-test/tests/upgrade.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,10 @@ describe('Upgrade test', function () {
});

step('Send l1 tx for saving new bootloader', async () => {
const path = `${pathToHome}/contracts/system-contracts/bootloader/build/artifacts/playground_batch.yul/playground_batch.yul.zbin`;
const path = `${pathToHome}/contracts/system-contracts/zkout/playground_batch.yul/contracts-preprocessed/bootloader/playground_batch.yul.json`;
let bootloaderCode;
if (fs.existsSync(path)) {
bootloaderCode = '0x'.concat(fs.readFileSync(path).toString());
bootloaderCode = '0x'.concat(require(path).bytecode.object);
} else {
const legacyPath = `${pathToHome}/contracts/system-contracts/bootloader/build/artifacts/playground_batch.yul.zbin`;
bootloaderCode = ethers.hexlify(fs.readFileSync(legacyPath));
Expand Down

0 comments on commit 8fac87c

Please sign in to comment.