diff --git a/.changeset/warm-horses-matter.md b/.changeset/warm-horses-matter.md new file mode 100644 index 00000000000..28e1396e7ba --- /dev/null +++ b/.changeset/warm-horses-matter.md @@ -0,0 +1,5 @@ +--- +"create-fuels": patch +--- + +fix: specify versions in `create fuels` toolchain file diff --git a/apps/create-fuels-counter-guide/fuel-toolchain.toml b/apps/create-fuels-counter-guide/fuel-toolchain.toml index 63b847ed56f..1abe9727207 100644 --- a/apps/create-fuels-counter-guide/fuel-toolchain.toml +++ b/apps/create-fuels-counter-guide/fuel-toolchain.toml @@ -1,2 +1,6 @@ [toolchain] channel = "testnet" + +[components] +forc = "0.66.5" +fuel-core = "0.40.1" \ No newline at end of file diff --git a/packages/create-fuels/test/cli.test.ts b/packages/create-fuels/test/cli.test.ts index e51500559df..a58965b876b 100644 --- a/packages/create-fuels/test/cli.test.ts +++ b/packages/create-fuels/test/cli.test.ts @@ -83,9 +83,13 @@ describe('CLI', { timeout: 15_000 }, () => { const fuelToolchain = readFileSync(fuelToolchainPath, 'utf-8'); const parsedFuelToolchain = toml.parse(fuelToolchain); - const { toolchain } = parsedFuelToolchain; + const { toolchain, components } = parsedFuelToolchain; expect(toolchain).toEqual({ channel: 'testnet' }); + expect(components).toEqual({ + forc: '0.66.5', + 'fuel-core': '0.40.1', + }); }); test('should rewrite for the appropriate package manager', async () => { diff --git a/templates/nextjs/fuel-toolchain.toml b/templates/nextjs/fuel-toolchain.toml index 7d473c1eac9..1abe9727207 100644 --- a/templates/nextjs/fuel-toolchain.toml +++ b/templates/nextjs/fuel-toolchain.toml @@ -1,2 +1,6 @@ [toolchain] -channel = "testnet" \ No newline at end of file +channel = "testnet" + +[components] +forc = "0.66.5" +fuel-core = "0.40.1" \ No newline at end of file diff --git a/templates/vite/fuel-toolchain.toml b/templates/vite/fuel-toolchain.toml index 7d473c1eac9..1abe9727207 100644 --- a/templates/vite/fuel-toolchain.toml +++ b/templates/vite/fuel-toolchain.toml @@ -1,2 +1,6 @@ [toolchain] -channel = "testnet" \ No newline at end of file +channel = "testnet" + +[components] +forc = "0.66.5" +fuel-core = "0.40.1" \ No newline at end of file