Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
0xVolosnikov committed Jan 21, 2025
1 parent e55e7cd commit a266d6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system-contracts/scripts/preprocess-system-contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ async function preprocess(testMode: boolean) {
console.log("\x1b[31mWarning: test mode for the preprocessing being used!\x1b[0m");
params.SYSTEM_CONTRACTS_OFFSET = "0x9000";
}
const substring = "uint160 constant SYSTEM_CONTRACTS_OFFSET = 0x8000;"
const replacingSubstring = `uint160 constant SYSTEM_CONTRACTS_OFFSET = ${params.SYSTEM_CONTRACTS_OFFSET};`
const substring = "uint160 constant SYSTEM_CONTRACTS_OFFSET = 0x8000;";
const replacingSubstring = `uint160 constant SYSTEM_CONTRACTS_OFFSET = ${params.SYSTEM_CONTRACTS_OFFSET};`;

const timestampFilePath = path.join(process.cwd(), TIMESTAMP_FILE);
const folderToCheck = path.join(process.cwd(), CONTRACTS_DIR);
Expand All @@ -41,7 +41,7 @@ async function preprocess(testMode: boolean) {
);

for (const contractPath of contracts) {
let contract = fs.readFileSync(contractPath,'utf8');
let contract = fs.readFileSync(contractPath, "utf8");

Check failure on line 44 in system-contracts/scripts/preprocess-system-contracts.ts

View workflow job for this annotation

GitHub Actions / lint

'contract' is never reassigned. Use 'const' instead

Check failure on line 44 in system-contracts/scripts/preprocess-system-contracts.ts

View workflow job for this annotation

GitHub Actions / lint

'contract' is never reassigned. Use 'const' instead

Check failure on line 44 in system-contracts/scripts/preprocess-system-contracts.ts

View workflow job for this annotation

GitHub Actions / lint

'contract' is never reassigned. Use 'const' instead
const preprocessed = await contract.replace(substring, replacingSubstring);
const fileName = `${OUTPUT_DIR}/${contractPath.slice(CONTRACTS_DIR.length)}`;
const directory = path.dirname(fileName);
Expand Down

0 comments on commit a266d6c

Please sign in to comment.