Fastest way to run this contract would be through our vm. But note that our vm runs an already built version this contract, so follow building guidelines to build and run if you want to make any changes.
Clone the vm.
# Clone our vm
git clone [email protected]:ComposableFi/cosmwasm-vm.git
# Workshop branch contains some modifications to be able
# to upload and run contracts that are over 200kb xd.
git checkout workshopRun it.
cargo test --profile=release --features=iterator --package cosmwasm-vm-wasmi semantic::test_workshop -- --exactreleaseprofile should be enabled, otherwise it will take a lot to run.- The test to run the workshop is
test_workshopinvm-wasmi/src/semantic.rs, you can tweak it however you like.
RUSTFLAGS='-C link-arg=-s' cargo b --target=wasm32-unknown-unknown --profile release
-
RUSTFLAGSare used to reduce the binary size. -
Our vm uses the contract in its
fixturesdirectory. So either copy the output contract to there:
cp $PATH_TO_COSMWASMCEPTION/target/wasm32-unknown-unknown/release/cosmwasmception.wasm $PATH_TO_COSMWASM_VM/fixtures/
Or just change the file path in test_workshop.