Error: 'Unknown field "fuelBlockSpend" on type "Message"'

Hi guys, never encountered that one before. Is it some versioning error? I’ll paste fuelup show at the end. I’m running fuel-core on

The error:

swapMachine.ts:504 Error: Unknown field "fuelBlockSpend" on type "Message".: 
{"data":null,"errors":[{"message":"Unknown field \"fuelBlockSpend\" on type \"Message\".","locations":[{"line":29,"column":3}]}],"status":200,"headers":{"map":{"content-length":"129","content-type":"application/json"}}},"request":{"query":"query getResourcesToSpend($owner: Address!, $queryPerAsset: [SpendQueryElementInput!]!, $excludedIds: ExcludeInput) {\n  resourcesToSpend(\n    owner: $owner\n    queryPerAsset: $queryPerAsset\n    excludedIds: $excludedIds\n  ) {\n    ...coinFragment\n    ...messageFragment\n  }\n}\n\nfragment coinFragment on Coin {\n  utxoId\n  owner\n  amount\n  assetId\n  maturity\n  status\n  blockCreated\n}\n\nfragment messageFragment on Message {\n  amount\n  sender\n  recipient\n  data\n  nonce\n  daHeight\n  fuelBlockSpend\n}","variables":

Sorry for the terrible formatting.

fuelup show:

fuelup show
Default host: aarch64-apple-darwin
fuelup home: /Users/maurice/.fuelup

installed toolchains
test (default)

active toolchain
test (default)
  forc : 0.35.3
    - forc-client
      - forc-deploy : 0.35.3
      - forc-run : 0.35.3
    - forc-doc : 0.35.3
    - forc-explore - not found
    - forc-fmt : 0.35.3
    - forc-index - not found
    - forc-lsp : 0.35.3
    - forc-tx : 0.35.3
    - forc-wallet : 0.2.0
  fuel-core : 0.17.3
  fuel-indexer - not found
1 Like

This looks like a version mismatch. Can you share steps to reproduce?

Hi Sarah, Thank you for your reply. To me, it happened when cloning matt’s bumped swayswap branch and then deploying the contracts manually on localhost.

  1. pnpm install
  2. pnpm services:run
  3. forc deploy --node-url --gas-price 1
  4. add contract_ids to .env
  5. pnpm scripts:setup
  6. pnpm contracts:init --init-pool
  7. pnpm contracts:build
  8. pnpm dev
1 Like

Hi Maurice,

I encountered this error on my machine a while back and it was bc of a version mismatch. I would double check that you are pulling the latest version of my branch. Then I would change your toolchain to beta-3 (this is what I am using rn) and double check that your versions are correct with fuelup check. Then I would try the following commands.
pnpm install
pnpm build
pnpm services:reset
It may also be useful to remove your pnpm.lock file before running pnpm install