Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.12 KB

VERIFYING.md

File metadata and controls

34 lines (27 loc) · 1.12 KB

Verifying the Unity Prop Smart Contract

The source code for the Unity prop smart contract is available in the cw-unity-prop repo.

To verify the code deployed on chain you will need docker and junod installed on your machine.

Compile contracts locally

Clone the repo and enter the directory:

git clone https://github.com/CosmosContracts/cw-unity-prop
cd cw-unity-prop
git checkout v0.3.0

Compile the contracts:

docker run --rm -v "$(pwd)":/code \
  --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
  --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
  cosmwasm/rust-optimizer:0.12.6

This should output info about the contract sha256 hash:

Optimizing cw_unity_prop.wasm ...
Creating hashes ...
3481e613b412706204124ce081ac9cba18eb044d5c78c922e55e162e411d4b47  cw_unity_prop.wasm
Info: sccache stats after build

More info on verifying smart contracts