chore: establish wave 7 local baseline
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user