Skip to content

Commit

Permalink
Move evm interpreter files for preprocessing to a new directory
Browse files Browse the repository at this point in the history
  • Loading branch information
IAvecilla committed Sep 10, 2024
1 parent d1f5c40 commit fe5d5f5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions system-contracts/scripts/preprocess-interpreter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ import { existsSync, mkdirSync, writeFileSync, readFileSync } from "fs";
const preprocess = require("preprocess");
/* eslint-enable@typescript-eslint/no-var-requires */

const OUTPUT_DIR = "contracts/";
const OUTPUT_DIR = "contracts";
const INPUT_DIR = "evm-interpreter";

async function main() {
process.chdir(`${OUTPUT_DIR}`);
process.chdir(`${INPUT_DIR}`);
const interpreterSource = readFileSync(`EvmInterpreter.template.yul`).toString();

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

View workflow job for this annotation

GitHub Actions / lint

Strings must use doublequote

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

View workflow job for this annotation

GitHub Actions / lint

Strings must use doublequote

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

View workflow job for this annotation

GitHub Actions / lint

Strings must use doublequote

console.log("Preprocessing Interpreter");
const interpreter = preprocess.preprocess(interpreterSource);

writeFileSync(`EvmInterpreter.yul`, interpreter);
writeFileSync(`../${OUTPUT_DIR}/EvmInterpreter.yul`, interpreter);

console.log("Intepreter preprocessing done!");

Check warning on line 19 in system-contracts/scripts/preprocess-interpreter.ts

View workflow job for this annotation

GitHub Actions / typos

"Intepreter" should be "Interpreter".
}
Expand Down

0 comments on commit fe5d5f5

Please sign in to comment.