Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

launchTestNode on 0.90.0 ts returns _FuelError: Unknown field "alocDependentCost" on type "GasCosts". #2687

Open
xpluscal opened this issue Jul 3, 2024 · 6 comments
Assignees
Labels
awaiting We need further input from the author bug Issue is a bug triage Issue needs to be triaged

Comments

@xpluscal
Copy link

xpluscal commented Jul 3, 2024

What version of fuels-ts are you using?

0.90.0

Steps to Reproduce

Create nodejs test script:

import { launchTestNode } from "fuels/test-utils";

(async () => {
    try {
        console.log("Starting node");
        while (true) {
            const launched = await launchTestNode();
            console.log("Launched node");
            console.log(launched);
        }
    } catch (e) {
        console.error(e);
    }
})();

And run through node --loader ts-node/esm localNode.ts

Expected Behavior

Launch a local fuel-core test node.

Actual Behavior

Errors out with

_FuelError: Unknown field "alocDependentCost" on type "GasCosts".
    at responseMiddleware (file:///Users/calvin/Documents/DO/0172_Props/projects/fuel/fuel-scripts/node_modules/@fuel-ts/account/dist/test-utils.mjs:3898:19)
    at /Users/calvin/Documents/DO/0172_Props/projects/fuel/fuel-scripts/node_modules/graphql-request/dist/index.js:284:17
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async _Provider.fetchChain (file:///Users/calvin/Documents/DO/0172_Props/projects/fuel/fuel-scripts/node_modules/@fuel-ts/account/dist/test-utils.mjs:3964:23)
    at async _Provider.fetchChainAndNodeInfo (file:///Users/calvin/Documents/DO/0172_Props/projects/fuel/fuel-scripts/node_modules/@fuel-ts/account/dist/test-utils.mjs:3862:19)
    at async _Provider.create (file:///Users/calvin/Documents/DO/0172_Props/projects/fuel/fuel-scripts/node_modules/@fuel-ts/account/dist/test-utils.mjs:3793:5)
    at async setupTestProviderAndWallets (file:///Users/calvin/Documents/DO/0172_Props/projects/fuel/fuel-scripts/node_modules/@fuel-ts/account/dist/test-utils.mjs:8995:16)
    at async launchTestNode (file:///Users/calvin/Documents/DO/0172_Props/projects/fuel/fuel-scripts/node_modules/@fuel-ts/contract/dist/test-utils.mjs:69:42)
    at async file:///Users/calvin/Documents/DO/0172_Props/projects/fuel/fuel-scripts/localNode.ts:6:30 {
  VERSIONS: { FORC: '0.60.0', FUEL_CORE: '0.30.0', FUELS: '0.90.0' },
  metadata: {},
  code: 'invalid-request'
}
@xpluscal xpluscal added bug Issue is a bug triage Issue needs to be triaged labels Jul 3, 2024
@nedsalk
Copy link
Contributor

nedsalk commented Jul 3, 2024

@xpluscal Which version of fuel-core are you using? It should be 0.30.0. Please run fuel-core --version and get back to us.

@xpluscal
Copy link
Author

xpluscal commented Jul 3, 2024

@nedsalk interesting! My error code returned 0.30.0 but fuel-core --version returned 0.26.0!
How do I separately update fuel-core? I have not seen instructions in the docs. Thx!

@xpluscal
Copy link
Author

xpluscal commented Jul 3, 2024

@nedsalk FYI I used the default suggested fuelup installation including fuelup update

@xpluscal
Copy link
Author

xpluscal commented Jul 3, 2024

@nedsalk latest toolchain in fuelup returns:

Installed:

  • forc 0.60.0
  • forc-explore 0.28.1
  • forc-wallet 0.7.1
  • fuel-core 0.26.0
  • fuel-core-keygen 0.26.0

@nedsalk
Copy link
Contributor

nedsalk commented Jul 3, 2024

@xpluscal the best way to go about this until the latest tag issue is sorted out is for you to setup a custom toolchain:
fuelup toolchain new my_toolchain && fuelup component add [email protected] && fuelup component add [email protected].

This will work with version 0.90.0 of the TS SDK. Version 0.91.0 will be released soon, at which point I suggest you update forc to 0.61.1: fuelup component add [email protected].

@nedsalk nedsalk self-assigned this Jul 3, 2024
@arboleya
Copy link
Member

arboleya commented Jul 3, 2024

Another option is to use the nightly toolchain:

fuelup toolchain install nightly
fuelup default nightly
fuelup show

@nedsalk nedsalk added the awaiting We need further input from the author label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting We need further input from the author bug Issue is a bug triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants