Closed dev573 closed 1 year ago
You don't run workspace optimizer on the smart contract level - instead, you execute it in the root folder so you build all contracts in the workspace. If you want to build only a single contract, you don't use workspace optimizer, but rust optimizer:
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.13
While running the command
in
cw2-base
smart contract getting errorGit Branch: main