Skip to content

Commit f4be76c

Browse files
chore: upgrade fuel-core to 0.44.0 (#3901)
* Bumped versions * Sync'd fuel-core schema * Separated `INSUFFICIENT_FUNDS` and `MAX_COINS_REACHED` * Fixed error message for `PredicateVerificationFailed` * Revert "Separated `INSUFFICIENT_FUNDS` and `MAX_COINS_REACHED`" This reverts commit e05e72d. * Allow proper mapping of `INSUFFICIENT_FUNDS_OR_MAX_COINS` error * Bumped `@fuels/asm` * Changeset * Added metadata to the `INSUFFICIENT_FUNDS_OR_MAX_COINS` error * Lintfix * Update .changeset/full-carpets-lose.md * Update .changeset/full-carpets-lose.md * Update .changeset/full-carpets-lose.md * Only bump version * Testing with binaries committed * Added logging to binary finding * Is it a faulty bin? * Use correct architecture for Vercel * rollback bin changes * Remove binaries * Install correct version * Testing publishing preview * deploy * Fix env * Use correct argument * Move to output * Removed CWD * Change dir * chore: added build * Added token * Added action * Missing shell * Please build * Added debug * Use latest corepack * Remove corepack version check * Added template build * Pull envs * Delete `vercel.json` * Fix? * Echo out deployment URL's * Echo out deployment URL's * Added PR comment * Revert "Only bump version" This reverts commit 6c42877. * Revert "Added logging to binary finding" This reverts commit cead8c3. * Update id * Added conditional outcome comment * Pls * Ensure all deployments successful * Added missing project ID * Added environment support for Vercel deploy * Fixed inputs * Single equality check * Added deployment for the releases * Missing nightly option * Added `assetId` to error message * Fixed error message --------- Co-authored-by: Sérgio Torres <30977845+Torres-ssf@users.noreply.github.com>
1 parent bce0f79 commit f4be76c

33 files changed

Lines changed: 96 additions & 66 deletions

File tree

.changeset/full-carpets-lose.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"@internal/fuel-core": patch
3+
"@fuel-ts/account": patch
4+
"@fuel-ts/contract": patch
5+
"fuels": patch
6+
"@fuel-ts/program": patch
7+
"@fuel-ts/utils": patch
8+
"@fuel-ts/versions": patch
9+
---
10+
11+
chore: upgrade `fuel-core` to `0.44.0`

.fuel-core/configs/chainConfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
"mul": 2,
8888
"muli": 2,
8989
"mldv": 3,
90+
"niop": 2,
9091
"noop": 1,
9192
"not": 2,
9293
"or": 1,

apps/create-fuels-counter-guide/fuel-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ channel = "testnet"
33

44
[components]
55
forc = "0.68.7"
6-
fuel-core = "0.43.1"
6+
fuel-core = "0.44.0"

apps/demo-bun-fuels/src/bun.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ describe('ExampleContract', () => {
7272
} = launched;
7373

7474
const unfundedWallet = Wallet.generate({ provider });
75+
const baseAssetId = await provider.getBaseAssetId();
7576

7677
const deploy = await SampleFactory.deploy(fundedWallet);
7778
const { contract } = await deploy.waitForResult();
@@ -82,7 +83,7 @@ describe('ExampleContract', () => {
8283
() => contractInstance.functions.return_input(1337).simulate(),
8384
new FuelError(
8485
ErrorCode.INSUFFICIENT_FUNDS_OR_MAX_COINS,
85-
`Insufficient funds or too many small value coins. Consider combining UTXOs.`
86+
`Insufficient funds or too many small value coins. Consider combining UTXOs.\nFor the following asset ID: '${baseAssetId}'.`
8687
)
8788
);
8889
});

apps/demo-fuels/src/index.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ describe('ExampleContract', () => {
6565
} = launched;
6666

6767
const unfundedWallet = Wallet.generate({ provider });
68+
const baseAssetId = await provider.getBaseAssetId();
6869

6970
const deploy = await SampleFactory.deploy(fundedWallet);
7071
const { contract } = await deploy.waitForResult();
@@ -75,7 +76,7 @@ describe('ExampleContract', () => {
7576
() => contractInstance.functions.return_input(1337).simulate(),
7677
new FuelError(
7778
ErrorCode.INSUFFICIENT_FUNDS_OR_MAX_COINS,
78-
`Insufficient funds or too many small value coins. Consider combining UTXOs.`
79+
`Insufficient funds or too many small value coins. Consider combining UTXOs.\nFor the following asset ID: '${baseAssetId}'.`
7980
)
8081
);
8182
});

apps/demo-nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"pretest": "pnpm original:build"
1111
},
1212
"dependencies": {
13-
"@fuels/vm-asm": "0.60.2",
13+
"@fuels/vm-asm": "0.62.0",
1414
"@types/node": "22.13.5",
1515
"@types/react-dom": "19.0.4",
1616
"@types/react": "19.0.10",

apps/demo-react-vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"pretest": "pnpm original:build"
1212
},
1313
"dependencies": {
14-
"@fuels/vm-asm": "0.60.2",
14+
"@fuels/vm-asm": "0.62.0",
1515
"fuels": "workspace:*",
1616
"react-dom": "19.0.0",
1717
"react": "19.0.0"

apps/demo-typegen/src/demo.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ it('should throw when simulating via contract factory with wallet with no resour
9999
} = launched;
100100

101101
const unfundedWallet = Wallet.generate({ provider });
102+
const baseAssetId = await provider.getBaseAssetId();
102103

103104
const factory = new DemoContractFactory(fundedWallet);
104105
const { waitForResult } = await factory.deploy();
@@ -109,7 +110,7 @@ it('should throw when simulating via contract factory with wallet with no resour
109110
() => contractInstance.functions.return_input(1337).simulate(),
110111
new FuelError(
111112
ErrorCode.INSUFFICIENT_FUNDS_OR_MAX_COINS,
112-
`Insufficient funds or too many small value coins. Consider combining UTXOs.`
113+
`Insufficient funds or too many small value coins. Consider combining UTXOs.\nFor the following asset ID: '${baseAssetId}'.`
113114
)
114115
);
115116
});

apps/docs/src/guide/predicates/snippets/cookbook/failure-not-enough-funds.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,13 @@ const predicate = new SimplePredicate({
1616

1717
// Any amount coins will fail as the predicate is unfunded
1818
const amountOfCoinsToFail = 1000;
19-
const { error } = await safeExec(async () =>
20-
predicate.transfer(
21-
receiver.address,
22-
amountOfCoinsToFail,
23-
await provider.getBaseAssetId()
24-
)
19+
const baseAssetId = await provider.getBaseAssetId();
20+
const { error } = await safeExec(() =>
21+
predicate.transfer(receiver.address, amountOfCoinsToFail, baseAssetId)
2522
);
2623

2724
// #region send-and-spend-funds-from-predicates-6
28-
const errorMessage = `Insufficient funds or too many small value coins. Consider combining UTXOs.`;
25+
const errorMessage = `Insufficient funds or too many small value coins. Consider combining UTXOs.\nFor the following asset ID: '${baseAssetId}'.`;
2926
// #endregion send-and-spend-funds-from-predicates-6
3027

3128
const actualErrorMessage = (<Error>error).message;

internal/fuel-core/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.43.1
1+
0.44.0

0 commit comments

Comments
 (0)