From 2d21767604213ab1680ba5d22788a8ab944ba316 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nedim=20Salki=C4=87?= Date: Mon, 21 Oct 2024 17:04:37 +0200 Subject: [PATCH] fix: proxy contract versions not being updated correctly (#3339) --- .changeset/thick-geckos-cheer.md | 2 ++ scripts/changeset/changeset-version-with-docs.ts | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .changeset/thick-geckos-cheer.md diff --git a/.changeset/thick-geckos-cheer.md b/.changeset/thick-geckos-cheer.md new file mode 100644 index 00000000000..a845151cc84 --- /dev/null +++ b/.changeset/thick-geckos-cheer.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/scripts/changeset/changeset-version-with-docs.ts b/scripts/changeset/changeset-version-with-docs.ts index 71fbd2d8aef..bbded5b557a 100644 --- a/scripts/changeset/changeset-version-with-docs.ts +++ b/scripts/changeset/changeset-version-with-docs.ts @@ -16,8 +16,12 @@ import { error } from 'console'; */ execSync(`changeset version`); - // Invoke versions' prebuild script (will rewrite version files if needed) - execSync(`pnpm -C packages/versions prebuild`); + /** + * Invoke versions' build script (will rewrite version files if needed) + * and build the versions package, so that fuels-typegen picks up the + * new fuels version when generating the proxy contract below. + */ + execSync(`pnpm -C packages/versions build`); // Invoke fuels' build:proxy script (will rewrite header versions in generated files) execSync(`pnpm -C packages/fuels build:proxy`);