Skip to content

Commit

Permalink
Fix system contracts
Browse files Browse the repository at this point in the history
Signed-off-by: Danil <[email protected]>
  • Loading branch information
Deniallugo committed Nov 25, 2024
1 parent 2953478 commit 2b54930
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system-contracts/scripts/calculate-hashes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const readBytecode = (details: ContractDetails): string => {
try {
if (details.bytecodePath.endsWith(".json")) {
const jsonFile = fs.readFileSync(absolutePath, "utf8");
return ethers.utils.hexlify("0x" + JSON.parse(jsonFile).bytecode.object);
return ethers.utils.hexlify(JSON.parse(jsonFile).bytecode.object);
} else {
return ethers.utils.hexlify(fs.readFileSync(absolutePath).toString(), { allowMissingPrefix: true });
}
Expand Down
2 changes: 1 addition & 1 deletion system-contracts/scripts/preprocess-bootloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function getSystemContextCodeHash() {
let bytecode;
try {
const artifact = JSON.parse(fs.readFileSync("zkout/SystemContext.sol/SystemContext.json", { encoding: "utf-8" }));
bytecode = "0x" + artifact.bytecode.object;
bytecode = artifact.bytecode.object;
} catch (e) {
bytecode = hre.artifacts.readArtifactSync("SystemContext").bytecode;
}
Expand Down

0 comments on commit 2b54930

Please sign in to comment.