Skip to content

Commit

Permalink
chore: upgrade to fuel core 0.27.0 (#2421)
Browse files Browse the repository at this point in the history
* chore: bumped version

* chore: fixed issue with incorrect `tx_id`'s

* chore: updated `chainConfig`

* Revert "chore: updated `chainConfig`"

This reverts commit 2d5cf62.

* chore: fixed incorrect `stateConfig`

* chore: added `native-executor-version`

* chore: upgraded `@fuels/vm-asm` to `0.50.0`

* chore: fixed length for `tx_id`

* chore: changeset

* chore: make `nativeExecutorVersion` statement simpler

Co-authored-by: Anderson Arboleya <[email protected]>

* chore: added `fuels` to changeset

Co-authored-by: Anderson Arboleya <[email protected]>

---------

Co-authored-by: Anderson Arboleya <[email protected]>
  • Loading branch information
petertonysmith94 and arboleya authored May 31, 2024
1 parent 874be91 commit eb6460b
Show file tree
Hide file tree
Showing 15 changed files with 201 additions and 188 deletions.
9 changes: 9 additions & 0 deletions .changeset/shy-trains-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@fuel-ts/versions": patch
"@fuel-ts/account": patch
"@fuel-ts/program": patch
"@fuel-ts/utils": patch
"fuels": patch
---

chore: upgrade to fuel core `0.27.0`
98 changes: 49 additions & 49 deletions .fuel-core/configs/stateConfig.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/demo-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"pretest": "pnpm original:build"
},
"dependencies": {
"@fuels/vm-asm": "0.49.0",
"@fuels/vm-asm": "0.50.0",
"@types/node": "18.15.3",
"@types/react-dom": "18.2.4",
"@types/react": "18.2.9",
Expand Down
2 changes: 1 addition & 1 deletion apps/demo-react-cra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.29",
"private": true,
"dependencies": {
"@fuels/vm-asm": "0.49.0",
"@fuels/vm-asm": "0.50.0",
"@testing-library/react": "^13.4.0",
"@types/node": "^16.18.34",
"@types/react": "^18.2.9",
Expand Down
2 changes: 1 addition & 1 deletion apps/demo-react-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"pretest": "pnpm original:build"
},
"dependencies": {
"@fuels/vm-asm": "0.49.0",
"@fuels/vm-asm": "0.50.0",
"fuels": "workspace:*",
"react-dom": "^18.2.0",
"react": "^18.2.0"
Expand Down
2 changes: 1 addition & 1 deletion internal/fuel-core/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.26.0
0.27.0
2 changes: 1 addition & 1 deletion packages/account/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@fuel-ts/transactions": "workspace:*",
"@fuel-ts/utils": "workspace:*",
"@fuel-ts/versions": "workspace:*",
"@fuels/vm-asm": "0.49.0",
"@fuels/vm-asm": "0.50.0",
"@noble/curves": "^1.3.0",
"events": "^3.3.0",
"graphql": "^16.8.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/account/src/providers/provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('Provider', () => {

const version = await provider.getVersion();

expect(version).toEqual('0.26.0');
expect(version).toEqual('0.27.0');
});

it('can call()', async () => {
Expand Down
7 changes: 5 additions & 2 deletions packages/account/src/test-utils/launchNode.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UTXO_ID_LEN } from '@fuel-ts/abi-coder';
import { BYTES_32 } from '@fuel-ts/abi-coder';
import { randomBytes } from '@fuel-ts/crypto';
import { defaultSnapshotConfigs, defaultConsensusKey, hexlify } from '@fuel-ts/utils';
import type { ChildProcessWithoutNullStreams } from 'child_process';
Expand Down Expand Up @@ -120,6 +120,8 @@ export const launchNode = async ({
const poaInstantFlagValue = getFlagValueFromArgs(args, '--poa-instant');
const poaInstant = poaInstantFlagValue === 'true' || poaInstantFlagValue === undefined;

const nativeExecutorVersion = getFlagValueFromArgs(args, '--native-executor-version') || '0';

// This string is logged by the client when the node has successfully started. We use it to know when to resolve.
const graphQLStartSubstring = 'Binding GraphQL provider to';

Expand Down Expand Up @@ -174,7 +176,7 @@ export const launchNode = async ({
process.env.GENESIS_SECRET = hexlify(pk);

stateConfigJson.coins.push({
tx_id: hexlify(randomBytes(UTXO_ID_LEN)),
tx_id: hexlify(randomBytes(BYTES_32)),
owner: signer.address.toHexString(),
// eslint-disable-next-line @typescript-eslint/no-explicit-any
amount: '18446744073709551615' as any,
Expand Down Expand Up @@ -214,6 +216,7 @@ export const launchNode = async ({
useInMemoryDb ? ['--db-type', 'in-memory'] : ['--db-path', tempDirPath],
['--min-gas-price', '1'],
poaInstant ? ['--poa-instant', 'true'] : [],
['--native-executor-version', nativeExecutorVersion],
['--consensus-key', consensusKey],
['--snapshot', snapshotDirToUse as string],
'--vm-backtrace',
Expand Down
Loading

0 comments on commit eb6460b

Please sign in to comment.