# Error: Unknown field "contractMaxSize" on type "ConsensusParameters"

**URL:** <https://forum.fuel.network/t/error-unknown-field-contractmaxsize-on-type-consensusparameters/4159>\
**Category:** TypeScript SDK\
**Created:** [February 4, 2024, 12:03pm UTC](https://forum.fuel.network/t/error-unknown-field-contractmaxsize-on-type-consensusparameters/4159 "2024-02-04T12:03:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chappie1998](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/chappie1998/32/971_2.png) [@chappie1998](https://forum.fuel.network/u/chappie1998)\
**Post date:** [February 4, 2024, 12:03pm UTC](https://forum.fuel.network/t/error-unknown-field-contractmaxsize-on-type-consensusparameters/4159/1 "2024-02-04T12:03:15Z")

</div>

Getting this error while calling mint function(from NFT contract)

 ![Screenshot from 2024-02-04 17-32-16](https://us1.discourse-cdn.com/flex022/uploads/fuel/original/2X/e/e5f323ed226a8d4fe83c5aa213af38ef49588e93.png)

````const
    console.log("mint start");
    const contract = await getContract();
    const res = await contract.functions
      .mint({ Address: { value: admin } }, BaseAssetId, 1)
      .txParams({ gasPrice: 100 })
      .call();
    console.log(res);
  };```
````

---

<div class="post-metadata">

**Author:** ![nedsalk](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/nedsalk/32/1867_2.png) [@nedsalk](https://forum.fuel.network/u/nedsalk)\
**Post date:** [February 5, 2024, 12:46pm UTC](https://forum.fuel.network/t/error-unknown-field-contractmaxsize-on-type-consensusparameters/4159/2 "2024-02-05T12:46:21Z")

</div>

Hi @chappie1998!  
Support for the `contractMaxSize` field was added as part of our upcoming beta-5 support endeavor. Which version of the SDK are you using? If you are targeting our beta-4 network you should be using `fuels` version 0.69.1 as that is the last one that supports beta-4. All newer versions of the SDK only support beta-5.

---

<div class="post-metadata">

**Author:** ![Torres-ssf](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/torres-ssf/32/1380_2.png) [@Torres-ssf](https://forum.fuel.network/u/Torres-ssf)\
**Post date:** [February 5, 2024, 4:44pm UTC](https://forum.fuel.network/t/error-unknown-field-contractmaxsize-on-type-consensusparameters/4159/3 "2024-02-05T16:44:37Z")

</div>

Hello @chappie1998.

Just like @nedsalk said, this problem is likely related to a mismatch of versions within the Fuel ecosystem.

Can you answer some questions for us to better understand your problem?

1 - Which version of `fuels` are you using?

2 - Are you having this error while connected to one of the testnets? Beta-4 or Beta-5?

3 - What is the output when you run `fuelup show` on your terminal

---

<div class="post-metadata">

**Author:** ![chappie1998](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/chappie1998/32/971_2.png) [@chappie1998](https://forum.fuel.network/u/chappie1998)\
**Post date:** [February 7, 2024, 6:23am UTC](https://forum.fuel.network/t/error-unknown-field-contractmaxsize-on-type-consensusparameters/4159/4 "2024-02-07T06:23:59Z")

</div>

solved by updating the fuel-ts. thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/fuel/original/2X/5/57d5a345cc15a64b636e0d56e042857f8a0e80b1.png) [@system](https://forum.fuel.network/u/system)\
**Post date:** [February 28, 2024, 2:24am UTC](https://forum.fuel.network/t/error-unknown-field-contractmaxsize-on-type-consensusparameters/4159/5 "2024-02-28T02:24:53Z")

</div>

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