# Why two different contracts can not mint the same assets

**URL:** <https://forum.fuel.network/t/why-two-different-contracts-can-not-mint-the-same-assets/5921>\
**Category:** General\
**Tags:** fuelup, faqs, tutorials\
**Created:** [June 19, 2024, 12:57pm UTC](https://forum.fuel.network/t/why-two-different-contracts-can-not-mint-the-same-assets/5921 "2024-06-19T12:57:33Z")\
**Posts on this page:** 2\
**Page:** 1

<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 19, 2024, 12:57pm UTC](https://forum.fuel.network/t/why-two-different-contracts-can-not-mint-the-same-assets/5921/1 "2024-06-19T12:57:33Z")

</div>

Why two different contracts can not mint the same assets?

Can’t `my_contract_id` be a different contract from the current calling function? Hence creating a asset?

```auto
let my_contract_id: ContractId = ContractId::from(0x1000000000000000000000000000000000000000000000000000000000000000);
let my_sub_id: SubId = 0x2000000000000000000000000000000000000000000000000000000000000000;
 
let asset_id: AssetId = AssetId::new(my_contract_id, my_sub_id);

```

---

<div class="post-metadata">

**Author:** ![david](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/david/32/32_2.png) [@david](https://forum.fuel.network/u/david)\
**Post date:** [June 19, 2024, 3:20pm UTC](https://forum.fuel.network/t/why-two-different-contracts-can-not-mint-the-same-assets/5921/2 "2024-06-19T15:20:49Z")

</div>

In the code you provide, you’re not _minting_ an asset, just creating an AssetId variable.

Minting looks like this:

```rust
mint_to(recipient, sub_id, amount);

```

Notice no contract ID is provided.
