Issue with InsufficientMaxFee Error on Contract Functions

Issue with InsufficientMaxFee Error on Contract Functions

Hello friends,

During the migration of the Spark project to devnet, I encountered a problem.

I deployed the order book contract with the address ee6396c57a41aeb5591e46702491f3d84a5c453bc32375b50d51aacbe0e14b27.

When I call any function of the contract, it fails with the error InsufficientMaxFee.

To reproduce the issue, you can run the create_market script
You can run it as follows:

fuelup default nightly
git clone 
cd orderbook-contract
git checkout InsufficientMaxFee
echo "ADMIN=<YOUR_PK>" >> .env 
cargo run --bin create_market   

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!

1 Like

Will ensure this is being looked into by the Rust SDK team.