Malformed `abi`. Did you use `forc` to create it?: invalid type: string "5557842539076482339"

Hello,

I encountered an issue after updating the fuel-toolchain.toml file to the latest nightly version and switching to the new version of fuel-rs 0.61. Now, when I try to run the tests, I get the following error:

You can reproduce the problem using the following commands:

git clone git@github.com:compolabs/orderbook-contract.git   
cd orderbook-contract/  
git checkout testnet  
forc build -v --release  
cargo test 

You need forc >=0.59.0

2 Likes

I’m using 0.60.0

The above reproduction steps don’t cause an issue for me. All the tests pass.

forc was downloaded from the fuel-toolchain.toml:

❯ fuelup show                      
Default host: x86_64-unknown-linux-gnu
fuelup home: /home/segfault_magnet/.fuelup

installed toolchains
--------------------
latest-x86_64-unknown-linux-gnu
custom (default)
nightly-2024-05-27-x86_64-unknown-linux-gnu (override)

active toolchain
----------------
nightly-2024-05-27-x86_64-unknown-linux-gnu (override), path: /home/segfault_magnet/orderbook-contract/fuel-toolchain.toml
  forc : 0.60.0+nightly.20240527.d93bb91ab5
    - forc-client
      - forc-deploy : not found
      - forc-run : not found
    - forc-crypto : not found
    - forc-debug : not found
    - forc-doc : not found
    - forc-explore : 0.28.1+nightly.20240527.4bb7392eed
    - forc-fmt : not found
    - forc-lsp : not found
    - forc-tx : not found
    - forc-wallet : 0.7.1+nightly.20240527.8420eb63b6
  fuel-core : 0.26.0+nightly.20240527.8beacf82bf
  fuel-core-keygen : 0.26.0+nightly.20240527.8beacf82bf

Can you try running:
which -a forc
Maybe your PATH is causing a different/older forc to compile it.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.