You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the introduction of immutable variables we can no longer just change the code hash of an existing contract. The reason is that immutable variables are associated with the contract and not with a code hash.
Currently, this is why set_code_hash is disabled. In order to fix this we need to run the constructor of the new code hash and overwrite the immutables of the calling current contract. Then we can enable the function again.
Not needed for the minimal launch because this function doesn't exist in Solidity and hence can only be made available via pre-compiles anyways.
The text was updated successfully, but these errors were encountered:
With the introduction of immutable variables we can no longer just change the code hash of an existing contract. The reason is that immutable variables are associated with the contract and not with a code hash.
Currently, this is why
set_code_hash
is disabled. In order to fix this we need to run the constructor of the new code hash and overwrite the immutables of the calling current contract. Then we can enable the function again.Not needed for the minimal launch because this function doesn't exist in Solidity and hence can only be made available via pre-compiles anyways.
The text was updated successfully, but these errors were encountered: