Questions tagged [code-hash]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers

How to upload the same ink! smart contract to a different code hash?

I've written this ink! quickstart script that I can repeatedly call to run these steps to flood my local testnet with instances of Flipper contracts: Kills an existing substrate-contracts-node ...
Luke Schoen's user avatar
  • 2,322
1 vote
1 answer

Calculating code hash for an authorize-enact style runtime upgrade?

How to calculate the code hash for fn authorize_upgrade of cumulus_pallet_parachain_system? As per crate substrate-runtime-proposal-hash been trying BLAKE2B32(0x0103 | BLAKE2B32(wasm_bytes)) with no ...
user1813's user avatar
  • 103
1 vote
2 answers

Ways to get the code hash of a contract by a given address

I've been wondering how I can access a contract's code hash. I see that from ink version 3.0.1, there is a function inside the ink_env crate code_hash but even when updating to the following version, ...
petreze's user avatar
  • 63