chore: establish wave 7 local baseline

This commit is contained in:
2026-07-28 22:07:49 +08:00
parent 23672e857b
commit 37b3397e4a
5 changed files with 396 additions and 3 deletions
+2 -1
View File
@@ -9,7 +9,8 @@ const schemaDirectory = resolve(root, "contracts/schema");
const source = await readFile(sourcePath);
const expectedHash = (await readFile(hashPath, "utf8")).trim();
const actualHash = createHash("sha256").update(source).digest("hex");
const normalizedSource = source.toString("utf8").replaceAll("\r\n", "\n");
const actualHash = createHash("sha256").update(normalizedSource).digest("hex");
if (actualHash !== expectedHash) {
throw new Error(