From 8fac87c376b733d68c157e0a759d21da2b6fe28f Mon Sep 17 00:00:00 2001 From: Zach Kolodny Date: Thu, 10 Oct 2024 17:10:19 -0400 Subject: [PATCH] update bootloader path in test --- core/tests/upgrade-test/tests/upgrade.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/tests/upgrade-test/tests/upgrade.test.ts b/core/tests/upgrade-test/tests/upgrade.test.ts index 665b570ede74..8a596747b454 100644 --- a/core/tests/upgrade-test/tests/upgrade.test.ts +++ b/core/tests/upgrade-test/tests/upgrade.test.ts @@ -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));