Issue with Configurable Values after Deployment on Devnet

Issue with Configurable Values after Deployment on Devnet

Hello friends,

During the migration of the Spark project to devnet, I encountered an issue where the configurable values on the contract do not match the values I set after deployment and configuration.

To reproduce the problem, I wrote this test:

You can run it as follows:

fuelup default nightly
git clone 
cd orderbook-contract
git checkout devnet
forc build
cargo test --package orderbook --test integration_tests -- deploy_test::deploy_test --exact --show-output 

The toolchain version I’m using is:

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

installed toolchains
nightly-aarch64-apple-darwin (default)

active toolchain
nightly-aarch64-apple-darwin (default)
  forc : 0.58.0+nightly.20240515.3c86abb400
    - forc-client
      - forc-deploy : 0.58.0+nightly.20240515.3c86abb400
      - forc-run : 0.58.0+nightly.20240515.3c86abb400
    - forc-crypto : 0.58.0+nightly.20240515.3c86abb400
    - forc-debug : 0.58.0+nightly.20240515.3c86abb400
    - forc-doc : 0.58.0+nightly.20240515.3c86abb400
    - forc-explore : 0.28.1+nightly.20240515.4bb7392eed
    - forc-fmt : 0.58.0+nightly.20240515.3c86abb400
    - forc-lsp : 0.58.0+nightly.20240515.3c86abb400
    - forc-tx : 0.58.0+nightly.20240515.3c86abb400
    - forc-wallet : 0.7.0+nightly.20240515.3576ae79c4
  fuel-core : 0.26.0+nightly.20240515.5b427ebdb1
  fuel-core-keygen : not found

Has anyone faced a similar issue or can provide insights on what might be going wrong? Any help would be appreciated!

Thank you!

Will ensure the Rust SDK team is looking into it.

Are you still having this issue?

The problem is that you are using forc: 0.58.0 which uses a new encoding for configurables and fuels-rs: 0.60.0 which still uses the the old one. You need to use at least fuels-rs: 0.61.0. I tried it and the test is passing.

fuels 0.61 cannot read “contract/out/release/orderbook-abi.json”


forc 0.58 is the same

This error means that you are using the new log_id encoding in the abi file. This should be included in forc 0.59.0: Release v0.59.0 · FuelLabs/sway · GitHub

To use the new log_id type in the abi you will need fuels-rs 0.62.0

1 Like