Skip to content

Commit

Permalink
fix: specify versions in create fuels toolchain file (#3475)
Browse files Browse the repository at this point in the history
* fix: use `latest` toolchain channel for `create fuels`

* update versions

* update changeset

* disable pr release

* Update cli.test.ts

* bump fuel-core

* fix test
  • Loading branch information
Dhaiwat10 authored Dec 13, 2024
1 parent 5ec254d commit efdf9a1
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/warm-horses-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-fuels": patch
---

fix: specify versions in `create fuels` toolchain file
4 changes: 4 additions & 0 deletions apps/create-fuels-counter-guide/fuel-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
[toolchain]
channel = "testnet"

[components]
forc = "0.66.5"
fuel-core = "0.40.1"
6 changes: 5 additions & 1 deletion packages/create-fuels/test/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down
6 changes: 5 additions & 1 deletion templates/nextjs/fuel-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
[toolchain]
channel = "testnet"
channel = "testnet"

[components]
forc = "0.66.5"
fuel-core = "0.40.1"
6 changes: 5 additions & 1 deletion templates/vite/fuel-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
[toolchain]
channel = "testnet"
channel = "testnet"

[components]
forc = "0.66.5"
fuel-core = "0.40.1"

0 comments on commit efdf9a1

Please sign in to comment.