Based on the ink! Cross-Contract Calling documentation, I want to reference other smart contract and instantiate it more than once. That would be possible?
I tried to do it but when I execute the logic twice I get a
Duplicate Contract error. I don't know if I have to send different parameters to salt_bytes() or if this is not possible right now with
I let you an example of what I have been trying:
let new_contract = ContractRef::new(owner) .endowment(0) .code_hash(self.contract_hash) .salt_bytes(self.version.to_le_bytes()) .instantiate() .expect("failed at instantiating the contract");