Why two different contracts can not mint the same assets

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?

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);
1 Like

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

Minting looks like this:

mint_to(recipient, sub_id, amount);

Notice no contract ID is provided.

1 Like