Function ink_env::set_code_hash2
source · pub fn set_code_hash2<E>(code_hash: &E::Hash) -> Result<()>where
E: Environment,
Expand description
Replace the contract code at the specified address with new code.
Compatibility
This is new version of the existing set_code_hash
function. We plan to place the
old function with this in the next MAJOR
release.
See the original set_code_hash
function for full details.