# Forc.toml \[contract-dependecies\] and a configurable dependency contract

**URL:** <https://forum.fuel.network/t/forc-toml-contract-dependecies-and-a-configurable-dependency-contract/9282>\
**Category:** Sway\
**Created:** [June 10, 2025, 3:20pm UTC](https://forum.fuel.network/t/forc-toml-contract-dependecies-and-a-configurable-dependency-contract/9282 "2025-06-10T15:20:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pgebal](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/pgebal/32/4192_2.png) [@pgebal](https://forum.fuel.network/u/pgebal)\
**Post date:** [June 10, 2025, 3:20pm UTC](https://forum.fuel.network/t/forc-toml-contract-dependecies-and-a-configurable-dependency-contract/9282/1 "2025-06-10T15:20:24Z")

</div>

I’ve found in Sway docs that I can refer to ContractId of a dependency contract in Sway code by `dependency::CONTRACT_ID`. Excerpt from Forc docs:

```auto
[project]
authors = ["user"]
entry = "main.sw"
organization = "Fuel_Labs"
license = "Apache-2.0"
name = "wallet_contract"
 
[contract-dependencies]
foo = { path = "../foo" }

```

Example usage:

```auto
script;

fn main() {
  let foo_id = foo::CONTRACT_ID;
}

```

That seems to work only for dependency contracts that are not configurable (I guess because we can’t figure out ContractId without knowing configurable values). Is there a way to make this work for a configurable contract?

```auto
https://docs.fuel.network/docs/forc/manifest_reference/#the-contract-dependencies-section

```
