# How to set the configurables value for a contract?

**URL:** <https://forum.fuel.network/t/how-to-set-the-configurables-value-for-a-contract/5775>\
**Category:** Sway\
**Created:** [June 13, 2024, 10:10am UTC](https://forum.fuel.network/t/how-to-set-the-configurables-value-for-a-contract/5775 "2024-06-13T10:10:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shivamlync](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/shivamlync/32/2807_2.png) [@shivamlync](https://forum.fuel.network/u/shivamlync)\
**Post date:** [June 13, 2024, 10:10am UTC](https://forum.fuel.network/t/how-to-set-the-configurables-value-for-a-contract/5775/1 "2024-06-13T10:10:54Z")

</div>

```rust
configurable {
    /// The maximum number of NFTs that may be minted.
    MAX_SUPPLY: u64 = 3,
    /// The total supply of coins for the asset minted by this contract.
    TOTAL_SUPPLY: u64 = 100_000_000,
    /// The decimals of the asset minted by this contract.
    DECIMALS: u8 = 9u8,
    /// The name of the asset minted by this contract.
    NAME: str[7] = __to_str_array("MyAsset"),
    /// The symbol of the asset minted by this contract.
    SYMBOL: str[5] = __to_str_array("MYTKN")

METADATA: <What should be the type for this>
}

```

1. How can I set the values for those mentioned above configurable? I found out that each configurable needs a function and then only that configurable constant is visible in abi. Then only I can set the values for those configurables
2. How can I manage the string values for the contract?

---

<div class="post-metadata">

**Author:** ![eesheng](https://avatars.discourse-cdn.com/v4/letter/e/2bfe46/32.png) [@eesheng](https://forum.fuel.network/u/eesheng)\
**Post date:** [June 20, 2024, 2:21am UTC](https://forum.fuel.network/t/how-to-set-the-configurables-value-for-a-contract/5775/2 "2024-06-20T02:21:23Z")

</div>

@shivamlync I think this would help you: [Docs](https://docs.fuel.network/docs/fuels-ts/contracts/configurable-constants/)

---

<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:** [June 27, 2024, 8:55am UTC](https://forum.fuel.network/t/how-to-set-the-configurables-value-for-a-contract/5775/3 "2024-06-27T08:55:26Z")

</div>

Thanks @eesheng for jumping in here and providing a solution. @shivamlync did this work for you?
