- Run
$ fuelup show
and add the output below
Configuration:
cargo.toml
fuels = { version = “0.66.2”, features = [“fuel-core-lib”] }
fuel-toolchain.toml
[toolchain]
channel = “latest-x86_64-apple-darwin”
[components]
forc=“0.63.1”
fuel-core = “0.33.0” - Detailed steps to recreate issue
Commands to run:
a. git clone GitHub - compolabs/orderbook-contract & cd orderbook-contract
b. forc build --release
c. cargo build --release
d. ./target/release/spark-cli core deposit
–asset-type base
–amount 10
–rpc “testnet.fuel.network”
–contract-id 0x21f2df4b6562991f7b364244b278b6420fbdebaa478b2690499ab049507d06e5
Response:
thread ‘main’ panicked at /…/orderbook-contract/spark-market-sdk/src/lib.rs:84:44:
calledResult::unwrap()
on anErr
value: provider: io error: Response errors; InsufficientMaxFee { max_fee_from_policies: 431, max_fee_from_gas_price: 326087 }
note: run withRUST_BACKTRACE=1
environment variable to display a backtrace - Link full scope of the codebase pertaining to your issue
- Any other relevant information
Deploy Rust code:
let contract_id = Contract::load_from(
root.join(MARKET_CONTRACT_BINARY_PATH),
contract_configuration,
)?
.with_salt(salt)
.deploy(&owner, TxPolicies::default())
.await?;
Can you please try deploying using fuel-core 0.34.0
? Please follow these steps to upgrade the toolchain
1 Like
It doesn’t help because I import fuel-rs 0.66.2 with fuel-core 0.33.0
Tried set contract.deploy(&owner, TxPolicies::default().with_max_fee(56893))
Then error:
InsufficientMaxFee { max_fee_from_policies: 56893, max_fee_from_gas_price: 56894 }
But if I increase max_fee by 1 to 56894 then InsufficientMaxFee { max_fee_from_policies: 431, max_fee_from_gas_price: 326087 }