# InsufficientMaxFee / max\_fee\_from\_policies: 0

**URL:** <https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162>\
**Category:** Tooling and IDE\
**Tags:** testnet, feedback\
**Created:** [July 5, 2024, 1:58pm UTC](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162 "2024-07-05T13:58:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lukasz2891](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/lukasz2891/32/1022_2.png) [@Lukasz2891](https://forum.fuel.network/u/Lukasz2891)\
**Post date:** [July 5, 2024, 1:58pm UTC](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162/1 "2024-07-05T13:58:55Z")

</div>

I’m running a script calling the contract on the testnet.

```shell
forc run --path $(INITIALIZER) --release -r \
--target testnet \
--contract $(CONTRACT_ID) \
--gas-price 10000 \
--max-fee 1000000000 \
$(SIGNING_KEY)

```

What does it mean:

```auto
error: provider: io error: warning: the fuel node version to which this provider is connected has a semver incompatible version from the one the SDK was developed against. Connected node version: 0.30.0, supported version: 0.28.0. Response errors; InsufficientMaxFee { max_fee_from_policies: 0, max_fee_from_gas_price: 326087 }

```

1. Why the supported node version is `0.28.0` when I’m using `fuel-core : 0.30.0+nightly.20240705.eb9c44bdd9`
2. How to convine the node to not throw the `InsufficientMaxFee` message. What does it mean `max_fee_from_policies: 0`? How to set it?

fuelup show (but same for toolchain `testnet`):

```auto
active toolchain
----------------
nightly-2024-07-05-aarch64-apple-darwin (override), path: /Users/lukaszkalbarczyk/Devel/redstone-oracles-monorepo/worktree-cr/packages/fuel-connector/sway/fuel-toolchain.toml
  forc : 0.61.2+nightly.20240705.acded67b3e
    - forc-client
      - forc-deploy : 0.61.2+nightly.20240705.acded67b3e
      - forc-run : 0.61.2+nightly.20240705.acded67b3e
    - forc-crypto : 0.61.2+nightly.20240705.acded67b3e
    - forc-debug : 0.61.2+nightly.20240705.acded67b3e
    - forc-doc : 0.61.2+nightly.20240705.acded67b3e
    - forc-explore : not found
    - forc-fmt : 0.61.2+nightly.20240705.acded67b3e
    - forc-lsp : 0.61.2+nightly.20240705.acded67b3e
    - forc-tx : 0.61.2+nightly.20240705.acded67b3e
    - forc-wallet : 0.8.1+nightly.20240705.ab41cd516d
  fuel-core : 0.30.0+nightly.20240705.eb9c44bdd9
  fuel-core-keygen : not found

```

---

<div class="post-metadata">

**Author:** ![naz3eh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/naz3eh/32/2025_2.png) [@naz3eh](https://forum.fuel.network/u/naz3eh)\
**Post date:** [July 5, 2024, 3:10pm UTC](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162/2 "2024-07-05T15:10:45Z")

</div>

can you install the testnet toolchain by running the command from [here](https://docs.fuel.network/guides/installation/#using-the-latest-toolchain)? also, would you share the SDK version you are using?

---

<div class="post-metadata">

**Author:** ![Lukasz2891](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/lukasz2891/32/1022_2.png) [@Lukasz2891](https://forum.fuel.network/u/Lukasz2891)\
**Post date:** [July 5, 2024, 4:00pm UTC](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162/3 "2024-07-05T16:00:07Z")

</div>

As I’ve mentioned:

> same for toolchain `testnet`

```auto
error: provider: io error: warning: the fuel node version to which this provider is connected has a semver incompatible version from the one the SDK was developed against. Connected node version: 0.30.0, supported version: 0.28.0. Response errors; InsufficientMaxFee { max_fee_from_policies: 0, max_fee_from_gas_price: 326087 }

```

```auto
active toolchain
----------------
testnet-aarch64-apple-darwin (override) (default), path: /Users/lukaszkalbarczyk/Devel/redstone-oracles-monorepo/worktree-cr/packages/fuel-connector/sway/fuel-toolchain.toml
  forc : 0.61.2
    - forc-client
      - forc-deploy : 0.61.2
      - forc-run : 0.61.2
    - forc-crypto : 0.61.2
    - forc-debug : 0.61.2
    - forc-doc : 0.61.2
    - forc-explore : 0.28.1
    - forc-fmt : 0.61.2
    - forc-lsp : 0.61.2
    - forc-tx : 0.61.2
    - forc-wallet : 0.8.1
  fuel-core : 0.28.0
  fuel-core-keygen : 0.28.0

fuels versions
--------------
forc : 0.64.0
forc-wallet : 0.64.0

```

What do u mean saying “SDK version”? That’s CLI.

---

<div class="post-metadata">

**Author:** ![naz3eh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/naz3eh/32/2025_2.png) [@naz3eh](https://forum.fuel.network/u/naz3eh)\
**Post date:** [July 8, 2024, 10:19am UTC](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162/4 "2024-07-08T10:19:46Z")

</div>

Can you share what script are you trying to run? It’d help me figure out if its a tooling issue or the script issue

---

<div class="post-metadata">

**Author:** ![Lukasz2891](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/lukasz2891/32/1022_2.png) [@Lukasz2891](https://forum.fuel.network/u/Lukasz2891)\
**Post date:** [July 8, 2024, 11:24am UTC](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162/5 "2024-07-08T11:24:14Z")

</div>

Sure:)

Maybe I missed sth for cross-contract invocations ;/

```rust
script;

use std::logging::log;
configurable {
    CONTRACT_ID: b256 = 0xc58d1c1c00a95a02e7f363279dbc242c94b60fb7022f1dac74778b3320ce7dec,
}

abi Prices {
    #[storage(read, write)]
    fn init(signers: Vec<b256>, signer_count_threshold: u64);
}

const SIGNER_COUNT_THRESHOLD = 1;

fn main() {
    let mut signers: Vec<b256> = Vec::new();
    signers.push(0x00000000000000000000000012470f7aba85c8b81d63137dd5925d6ee114952b);
    signers.push(0x000000000000000000000000109B4a318A4F5ddcbCA6349B45f881B4137deaFB);
    signers.push(0x0000000000000000000000001ea62d73edf8ac05dfcea1a34b9796e937a29eff);
    signers.push(0x0000000000000000000000002c59617248994D12816EE1Fa77CE0a64eEB456BF);
    signers.push(0x00000000000000000000000083cba8c619fb629b81a65c2e67fe15cf3e3c9747);
    signers.push(0x000000000000000000000000f786a909d559f5dee2dc6706d8e5a81728a39ae9); // redstone-rapid-demo
    let prices = abi(Prices, CONTRACT_ID);
    let _ = prices.init(signers, SIGNER_COUNT_THRESHOLD);
}

```

---

<div class="post-metadata">

**Author:** ![Lukasz2891](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/lukasz2891/32/1022_2.png) [@Lukasz2891](https://forum.fuel.network/u/Lukasz2891)\
**Post date:** [July 8, 2024, 12:50pm UTC](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162/6 "2024-07-08T12:50:03Z")

</div>

Also changing to

```rust
let _ = prices.init {
        gas: 10000,
        coins: 0,
        asset_id: b256::zero(),
    }(signers, SIGNER_COUNT_THRESHOLD);

```

doesn’t help.

---

<div class="post-metadata">

**Author:** ![naz3eh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/naz3eh/32/2025_2.png) [@naz3eh](https://forum.fuel.network/u/naz3eh)\
**Post date:** [July 8, 2024, 5:50pm UTC](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162/7 "2024-07-08T17:50:31Z")

</div>

Have shared it with the team and will keep you posted on it 🙂

---

<div class="post-metadata">

**Author:** ![naz3eh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/naz3eh/32/2025_2.png) [@naz3eh](https://forum.fuel.network/u/naz3eh)\
**Post date:** [July 11, 2024, 10:04am UTC](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162/8 "2024-07-11T10:04:48Z")

</div>

We have released a new fuel core version `0.31.0`, you can read about it [here](https://forum.fuel.network/t/release-of-the-new-version-of-fuel-core-0-31-0/6223/1). Can you try updating the toolchain to the latest and see how how it goes?

---

<div class="post-metadata">

**Author:** ![Lukasz2891](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/lukasz2891/32/1022_2.png) [@Lukasz2891](https://forum.fuel.network/u/Lukasz2891)\
**Post date:** [July 11, 2024, 11:35am UTC](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162/9 "2024-07-11T11:35:54Z")

</div>

Still the same issue.

I also don’t understand, why this error is displayed:

```auto
error: provider: io error: warning: the fuel node version to which this provider is connected has a semver incompatible version from the one the SDK was developed against. Connected node version: 0.31.0, supported version: 0.28.

```

It seems that the node-url returns sth wrong, or it connects to another node, not to the testnet.fuel.network/v1/graphql…

Locally it works perfectly, but for testnet I cannot run the script invoking the contract.  
Maybe I need to recreate the wallet or sth? I did top up both, local and remote wallets…

```auto
Default host: aarch64-apple-darwin
fuelup home: .../.fuelup

Installed toolchains
--------------------
beta-5-aarch64-apple-darwin
latest-aarch64-apple-darwin (default)
nightly-aarch64-apple-darwin
nightly-2023-03-25-aarch64-apple-darwin
nightly-2024-05-10-aarch64-apple-darwin
nightly-2024-06-01-aarch64-apple-darwin
nightly-2024-06-15-aarch64-apple-darwin
nightly-2024-07-01-aarch64-apple-darwin
nightly-2024-07-03-aarch64-apple-darwin
nightly-2024-07-05-aarch64-apple-darwin
nightly-2024-07-09-aarch64-apple-darwin
nightly-2024-07-10-aarch64-apple-darwin
nightly-2024-07-11-aarch64-apple-darwin
testnet-aarch64-apple-darwin

active toolchain
----------------
latest-aarch64-apple-darwin (default)
  forc : 0.61.2
    - forc-client
      - forc-deploy : 0.61.2
      - forc-run : 0.61.2
    - forc-crypto : 0.61.2
    - forc-debug : 0.61.2
    - forc-doc : 0.61.2
    - forc-fmt : 0.61.2
    - forc-lsp : 0.61.2
    - forc-tx : 0.61.2
    - forc-wallet : 0.8.1
  fuel-core : 0.31.0
  fuel-core-keygen : 0.31.0

fuels versions
--------------
forc : 0.64.0
forc-wallet : 0.64.0

```

---

<div class="post-metadata">

**Author:** ![naz3eh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/naz3eh/32/2025_2.png) [@naz3eh](https://forum.fuel.network/u/naz3eh)\
**Post date:** [July 11, 2024, 11:37am UTC](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162/10 "2024-07-11T11:37:57Z")

</div>

you might need to [update your default toolchain](https://docs.fuel.network/guides/installation/#installing-nightly-toolchain). Here is the output from [my terminal](https://app.warp.dev/block/r2rie3suHRjAZew5FGnwhp), see the ac†ive default toolchain in that

you can also run `fuelup default nightly `

---

<div class="post-metadata">

**Author:** ![Lukasz2891](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/lukasz2891/32/1022_2.png) [@Lukasz2891](https://forum.fuel.network/u/Lukasz2891)\
**Post date:** [July 11, 2024, 2:18pm UTC](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162/11 "2024-07-11T14:18:45Z")

</div>

Still it doesn’t help, even after changing it to `nightly-2024-07-05`, or `latest`, or `testnet`, or `nightly`

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

Installed toolchains
--------------------
beta-5-aarch64-apple-darwin
latest-aarch64-apple-darwin
nightly-aarch64-apple-darwin
nightly-2023-03-25-aarch64-apple-darwin
nightly-2024-05-10-aarch64-apple-darwin
nightly-2024-06-01-aarch64-apple-darwin
nightly-2024-06-15-aarch64-apple-darwin
nightly-2024-07-01-aarch64-apple-darwin
nightly-2024-07-03-aarch64-apple-darwin
nightly-2024-07-05-aarch64-apple-darwin (default)
nightly-2024-07-09-aarch64-apple-darwin
nightly-2024-07-10-aarch64-apple-darwin
nightly-2024-07-11-aarch64-apple-darwin
testnet-aarch64-apple-darwin

active toolchain
----------------
nightly-2024-07-05-aarch64-apple-darwin (default)
  forc : 0.61.2+nightly.20240705.acded67b3e
    - forc-client
      - forc-deploy : 0.61.2+nightly.20240705.acded67b3e
      - forc-run : 0.61.2+nightly.20240705.acded67b3e
    - forc-crypto : 0.61.2+nightly.20240705.acded67b3e
    - forc-debug : 0.61.2+nightly.20240705.acded67b3e
    - forc-doc : 0.61.2+nightly.20240705.acded67b3e
    - forc-fmt : 0.61.2+nightly.20240705.acded67b3e
    - forc-lsp : 0.61.2+nightly.20240705.acded67b3e
    - forc-tx : 0.61.2+nightly.20240705.acded67b3e
    - forc-wallet : 0.8.1+nightly.20240705.ab41cd516d
  fuel-core : 0.30.0+nightly.20240705.eb9c44bdd9
  fuel-core-keygen : not found

```

---

<div class="post-metadata">

**Author:** ![naz3eh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/naz3eh/32/2025_2.png) [@naz3eh](https://forum.fuel.network/u/naz3eh)\
**Post date:** [July 12, 2024, 2:45pm UTC](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162/12 "2024-07-12T14:45:29Z")

</div>

Thanks for confirming. I have shared with the team and will keep you posted

---

<div class="post-metadata">

**Author:** ![naz3eh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/naz3eh/32/2025_2.png) [@naz3eh](https://forum.fuel.network/u/naz3eh)\
**Post date:** [July 12, 2024, 3:07pm UTC](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162/13 "2024-07-12T15:07:47Z")

</div>

@Lukasz2891 Is it possible for you to share the entire codebase? I need to run it locally and reproduce it

---

<div class="post-metadata">

**Author:** ![Lukasz2891](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/lukasz2891/32/1022_2.png) [@Lukasz2891](https://forum.fuel.network/u/Lukasz2891)\
**Post date:** [July 15, 2024, 8:33am UTC](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162/14 "2024-07-15T08:33:55Z")

</div>

I’ve prepared a repo for you, omitting the whole library dependency, but abstracting the issue:

> **[GitHub - redstone-finance/fuel-test-contract](https://github.com/redstone-finance/fuel-test-contract)**
>
> Contribute to redstone-finance/fuel-test-contract development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![naz3eh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/naz3eh/32/2025_2.png) [@naz3eh](https://forum.fuel.network/u/naz3eh)\
**Post date:** [July 16, 2024, 7:18am UTC](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162/15 "2024-07-16T07:18:19Z")

</div>

Thanks @Lukasz2891, will have a look at it in some time.

---

<div class="post-metadata">

**Author:** ![Lukasz2891](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/lukasz2891/32/1022_2.png) [@Lukasz2891](https://forum.fuel.network/u/Lukasz2891)\
**Post date:** [July 23, 2024, 8:53am UTC](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162/16 "2024-07-23T08:53:37Z")

</div>

Hi 🙂 Do you have any update with that issue ;)?

---

<div class="post-metadata">

**Author:** ![naz3eh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/naz3eh/32/2025_2.png) [@naz3eh](https://forum.fuel.network/u/naz3eh)\
**Post date:** [July 24, 2024, 9:06am UTC](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162/17 "2024-07-24T09:06:52Z")

</div>

Hey @Lukasz2891, i have updated the `[fuel-toolchain.toml](https://github.com/redstone-finance/fuel-test-contract/blob/main/fuel-toolchain.toml)` to these values

```auto
[toolchain]
channel = "testnet-aarch64-apple-darwin"

[components]
forc = "0.62.0"
fuel-core = "0.31.0"

```

and have also updated the the `forc-version` to `0.62.0` in the `[Forc.toml](https://github.com/redstone-finance/fuel-test-contract/blob/main/test_contract/Forc.toml)` file and it fixed the version issue for me. here is the screenshot of the output for `make deploy_and_init` command

 ![image](https://us1.discourse-cdn.com/flex022/uploads/fuel/original/2X/c/c4a30cb6d240f7f16eb9f38b6ad4675549b32105.png)  
lmk if that works for you. happy to help more

---

<div class="post-metadata">

**Author:** ![Lukasz2891](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/lukasz2891/32/1022_2.png) [@Lukasz2891](https://forum.fuel.network/u/Lukasz2891)\
**Post date:** [September 2, 2024, 12:44pm UTC](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162/18 "2024-09-02T12:44:23Z")

</div>

Hi,

I’m back with you 🙂

It didn’t help for me, I’m still getting the error, even changing to the newest toolchain&forc. I’ll push the repo changes.

```auto
error: provider: io error: warning: the fuel node version to which this provider is connected has a semver incompatible version from the one the SDK was developed against. Connected node version: 0.34.0, supported version: 0.32.1. Response errors; InsufficientMaxFee { max_fee_from_policies: 0, max_fee_from_gas_price: 326087 }

```

```auto
Default host: aarch64-apple-darwin
fuelup home: [redacted]

Installed toolchains
--------------------
latest-aarch64-apple-darwin
nightly-2024-07-24-aarch64-apple-darwin
nightly-2024-08-01-aarch64-apple-darwin
nightly-2024-08-15-aarch64-apple-darwin
nightly-2024-08-24-aarch64-apple-darwin
nightly-2024-09-01-aarch64-apple-darwin
testnet-aarch64-apple-darwin (default) (override)

active toolchain
----------------
testnet-aarch64-apple-darwin (override) (default), path: /Users/lukaszkalbarczyk/Devel/fuel-test-contract/fuel-toolchain.toml
  forc : 0.63.3
    - forc-client
      - forc-deploy : 0.63.3
      - forc-run : 0.63.3
    - forc-crypto : 0.63.3
    - forc-debug : 0.63.3
    - forc-doc : 0.63.3
    - forc-fmt : 0.63.3
    - forc-lsp : 0.63.3
    - forc-tx : 0.63.3
    - forc-wallet : 0.9.0
  fuel-core : 0.34.0
  fuel-core-keygen : 0.34.0

fuels versions
--------------
forc : 0.66.1
forc-wallet : 0.66.0

```

---

<div class="post-metadata">

**Author:** ![Lukasz2891](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/lukasz2891/32/1022_2.png) [@Lukasz2891](https://forum.fuel.network/u/Lukasz2891)\
**Post date:** [September 19, 2024, 12:16pm UTC](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162/19 "2024-09-19T12:16:35Z")

</div>

For ignition/`forc 0.35.0`

`error: provider: io error: Response errors; InsufficientMaxFee { max_fee_from_policies: 0, max_fee_from_gas_price: 326087 }`

still, don’t know how to increase the fee in a script invocation.

maybe the script doesn’t provide the fee-parameters to the contract?

for typescript sdk everything looks properly

---

<div class="post-metadata">

**Author:** ![naz3eh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/naz3eh/32/2025_2.png) [@naz3eh](https://forum.fuel.network/u/naz3eh)\
**Post date:** [September 25, 2024, 12:59pm UTC](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162/20 "2024-09-25T12:59:48Z")

</div>

We have released the new versions recently. can you try updating all the versions and see if that works?

[Next page](https://forum.fuel.network/t/insufficientmaxfee-max-fee-from-policies-0/6162.md?page=2)
