diff --git a/.changeset/strange-glasses-act.md b/.changeset/strange-glasses-act.md new file mode 100644 index 00000000000..65ef362f1d0 --- /dev/null +++ b/.changeset/strange-glasses-act.md @@ -0,0 +1,8 @@ +--- +"@internal/fuel-core": patch +"@fuel-ts/versions": patch +"@fuel-ts/account": patch +"fuels": patch +--- + +chore: update `fuel-core` to `0.38.0` diff --git a/apps/docs-snippets/src/guide/cookbook/resubmitting-failed-transactions.test.ts b/apps/docs-snippets/src/guide/cookbook/resubmitting-failed-transactions.test.ts index 601b60d25a6..c2674eb50dc 100644 --- a/apps/docs-snippets/src/guide/cookbook/resubmitting-failed-transactions.test.ts +++ b/apps/docs-snippets/src/guide/cookbook/resubmitting-failed-transactions.test.ts @@ -71,7 +71,7 @@ describe('Resubmitting Failed Transactions', () => { } } // #endregion resubmitting-failed-transactions-3 - }).rejects.toThrow('Transaction is not inserted. UTXO does not exist: 0x'); + }).rejects.toThrowError(/Transaction input validation failed: UTXO \(id: .*\) does not exist/); await expect( (async () => { diff --git a/internal/fuel-core/VERSION b/internal/fuel-core/VERSION index 9b1bb851239..ca75280b09b 100644 --- a/internal/fuel-core/VERSION +++ b/internal/fuel-core/VERSION @@ -1 +1 @@ -0.37.1 +0.38.0 diff --git a/packages/account/src/providers/provider.test.ts b/packages/account/src/providers/provider.test.ts index b319640a5d9..12b82b67619 100644 --- a/packages/account/src/providers/provider.test.ts +++ b/packages/account/src/providers/provider.test.ts @@ -298,7 +298,7 @@ describe('Provider', () => { const version = await provider.getVersion(); - expect(version).toEqual('0.37.1'); + expect(version).toEqual(versions.FUEL_CORE); }); it('can call()', async () => { diff --git a/packages/fuel-gauge/src/funding-transaction.test.ts b/packages/fuel-gauge/src/funding-transaction.test.ts index 7c9d8f033ba..e43e1969f41 100644 --- a/packages/fuel-gauge/src/funding-transaction.test.ts +++ b/packages/fuel-gauge/src/funding-transaction.test.ts @@ -1,5 +1,5 @@ import { FuelError } from '@fuel-ts/errors'; -import { expectToThrowFuelError } from '@fuel-ts/errors/test-utils'; +import { expectToThrowFuelError, safeExec } from '@fuel-ts/errors/test-utils'; import type { Account, CoinTransactionRequestInput } from 'fuels'; import { DEFAULT_RESOURCE_CACHE_TTL, ScriptTransactionRequest, Wallet, bn, sleep } from 'fuels'; import { launchTestNode } from 'fuels/test-utils'; @@ -507,12 +507,20 @@ describe('Funding Transactions', () => { await sleep(100); // Submitting TX 2 before TX 1 finished to process. - await expectToThrowFuelError( - () => fundedWallet.transfer(receiver.address, transferAmount, provider.getBaseAssetId()), - new FuelError( - FuelError.CODES.INVALID_REQUEST, - 'Transaction is not inserted. Hash is already known' - ) + await expect(() => + fundedWallet.transfer(receiver.address, transferAmount, provider.getBaseAssetId()) + ).rejects.toThrowError( + /Transaction input validation failed: Transaction id already exists \(id: .*\)/ + ); + + const { error: e } = await safeExec(async () => { + await fundedWallet.transfer(receiver.address, transferAmount, provider.getBaseAssetId()); + }); + + const error = e; + expect(error.code).toEqual(FuelError.CODES.INVALID_REQUEST); + expect(error.message).toMatch( + /Transaction input validation failed: Transaction id already exists \(id: .*\)/ ); }, 15_000); }); diff --git a/packages/fuel-gauge/src/transaction-response.test.ts b/packages/fuel-gauge/src/transaction-response.test.ts index fd7861f0080..a9763a3112a 100644 --- a/packages/fuel-gauge/src/transaction-response.test.ts +++ b/packages/fuel-gauge/src/transaction-response.test.ts @@ -100,7 +100,14 @@ describe('TransactionResponse', () => { it('should ensure getTransactionSummary fetches a transaction and assembles transaction summary', async () => { using launched = await launchTestNode({ nodeOptions: { - args: ['--poa-instant', 'false', '--poa-interval-period', '1s'], + args: [ + '--poa-instant', + 'false', + '--poa-interval-period', + '1s', + '--tx-ttl-check-interval', + '1s', + ], }, }); @@ -160,7 +167,14 @@ describe('TransactionResponse', () => { * We need at least one long test to ensure that the keep-alive messages are handled correctly. * */ nodeOptions: { - args: ['--poa-instant', 'false', '--poa-interval-period', '17sec'], + args: [ + '--poa-instant', + 'false', + '--poa-interval-period', + '17sec', + '--tx-ttl-check-interval', + '1s', + ], }, }); @@ -202,7 +216,16 @@ describe('TransactionResponse', () => { amountPerCoin: 500_000, }, nodeOptions: { - args: ['--poa-instant', 'false', '--poa-interval-period', '2s', '--tx-pool-ttl', '1s'], + args: [ + '--poa-instant', + 'false', + '--poa-interval-period', + '2s', + '--tx-pool-ttl', + '1s', + '--tx-ttl-check-interval', + '1s', + ], loggingEnabled: false, }, }); @@ -245,7 +268,16 @@ describe('TransactionResponse', () => { async () => { using launched = await launchTestNode({ nodeOptions: { - args: ['--poa-instant', 'false', '--poa-interval-period', '4s', '--tx-pool-ttl', '1s'], + args: [ + '--poa-instant', + 'false', + '--poa-interval-period', + '4s', + '--tx-pool-ttl', + '1s', + '--tx-ttl-check-interval', + '1s', + ], loggingEnabled: false, }, }); diff --git a/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxy.ts b/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxy.ts index 7a00d9cf44b..69ac58554eb 100644 --- a/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxy.ts +++ b/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxy.ts @@ -5,7 +5,7 @@ /* eslint-disable @typescript-eslint/consistent-type-imports */ /* - Fuels version: 0.94.8 + Fuels version: 0.94.9 */ import { Contract, Interface } from "../../../../.."; diff --git a/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxyFactory.ts b/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxyFactory.ts index ba8c8ae9571..d45e4ebe4dc 100644 --- a/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxyFactory.ts +++ b/packages/fuels/src/cli/commands/deploy/proxy/types/Src14OwnedProxyFactory.ts @@ -5,7 +5,7 @@ /* eslint-disable @typescript-eslint/consistent-type-imports */ /* - Fuels version: 0.94.8 + Fuels version: 0.94.9 */ import { Contract, ContractFactory, decompressBytecode } from "../../../../.."; diff --git a/packages/fuels/src/cli/commands/deploy/proxy/types/common.d.ts b/packages/fuels/src/cli/commands/deploy/proxy/types/common.d.ts index 792715f1050..644706659dd 100644 --- a/packages/fuels/src/cli/commands/deploy/proxy/types/common.d.ts +++ b/packages/fuels/src/cli/commands/deploy/proxy/types/common.d.ts @@ -5,7 +5,7 @@ /* eslint-disable @typescript-eslint/consistent-type-imports */ /* - Fuels version: 0.94.8 + Fuels version: 0.94.9 */ /** diff --git a/packages/fuels/src/cli/commands/deploy/proxy/types/index.ts b/packages/fuels/src/cli/commands/deploy/proxy/types/index.ts index 67bfbb027a4..e119fcb6928 100644 --- a/packages/fuels/src/cli/commands/deploy/proxy/types/index.ts +++ b/packages/fuels/src/cli/commands/deploy/proxy/types/index.ts @@ -5,7 +5,7 @@ /* eslint-disable @typescript-eslint/consistent-type-imports */ /* - Fuels version: 0.94.8 + Fuels version: 0.94.9 */ export { Src14OwnedProxy } from './Src14OwnedProxy'; diff --git a/packages/versions/src/lib/getBuiltinVersions.ts b/packages/versions/src/lib/getBuiltinVersions.ts index 8125cea87d3..2f057cbead4 100644 --- a/packages/versions/src/lib/getBuiltinVersions.ts +++ b/packages/versions/src/lib/getBuiltinVersions.ts @@ -3,7 +3,7 @@ import type { Versions } from './types'; export function getBuiltinVersions(): Versions { return { FORC: '0.65.2', - FUEL_CORE: '0.37.1', + FUEL_CORE: '0.38.0', FUELS: '0.94.9', }; }