From 74a62473510e2206126a27c0a14ad63390718cc6 Mon Sep 17 00:00:00 2001 From: Pauan Date: Thu, 26 Sep 2024 21:25:24 -0700 Subject: [PATCH] Fixing minor typo --- scripts/change-version.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/change-version.js b/scripts/change-version.js index f8b6e5e5d..3bf4c9646 100644 --- a/scripts/change-version.js +++ b/scripts/change-version.js @@ -39,9 +39,9 @@ async function updateVersions(newVersion) { // Updates the version in `Cargo.toml` async function updateCargo(newVersion) { - const json = await readFile("wasm/Cargo.toml", { encoding: "utf8" }); + const toml = await readFile("wasm/Cargo.toml", { encoding: "utf8" }); - const replaced = json + const replaced = toml .replace(/(name *= *"aleo-wasm"\s+version *= *)"[^"]+"/, `$1"${newVersion}"`); await writeFile("wasm/Cargo.toml", replaced);