Skip to content

Commit

Permalink
docs: sc yarn commands updated
Browse files Browse the repository at this point in the history
  • Loading branch information
benceharomi committed Dec 6, 2023
1 parent 79cf26c commit 9be2c25
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions system-contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ used on msg.sender, when it calls other contracts.

This repository is used as a submodule of the [zksync-era](https://github.com/matter-labs/zksync-era).

Compile the solidity and yul contracts: `yarn build`
Compile the solidity and yul contracts: `yarn sc build`

Check the system contracts hashes: `yarn calculate-hashes:check`
Check the system contracts hashes: `yarn sc calculate-hashes:check`

Update the system contracts hashes: `yarn calculate-hashes:fix`
Update the system contracts hashes: `yarn sc calculate-hashes:fix`

## Update Process

Expand Down
6 changes: 4 additions & 2 deletions system-contracts/scripts/calculate-hashes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ const main = async () => {
console.log("Calculated hashes differ from the hashes in the SystemContractsHashes.json file. Differences:");
console.log(differences);
if (checkOnly) {
console.log("You can use the `yarn calculate-hashes:fix` command to update the SystemContractsHashes.json file.");
console.log(
"You can use the `yarn sc calculate-hashes:fix` command to update the SystemContractsHashes.json file."
);
console.log("Exiting...");
process.exit(1);
} else {
Expand All @@ -225,6 +227,6 @@ main()
.then(() => process.exit(0))
.catch((err) => {
console.error("Error:", err.message || err);
console.log("Please make sure to run `yarn build` before running this script.");
console.log("Please make sure to run `yarn sc build` before running this script.");
process.exit(1);
});

0 comments on commit 9be2c25

Please sign in to comment.