From the documentation, we have 2 ways of instantiating a contract from a code_hash, but both require a ContractRef.

In order to obtain ContractRef we have to import the contract crate as a dependency into the current project, which might not be ideal in case we only have code_hash of the contract.

So is there a way to instantiate a contract from code_hash without ContractRef?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.