diff --git a/Makefile b/Makefile index f5084d0f26..745b444476 100644 --- a/Makefile +++ b/Makefile @@ -184,7 +184,7 @@ docker-check-contracts: @docker run --rm --platform $(COSMWASM_OPTIMIZER_PLATFORM) \ -v $(CURDIR):/code --workdir /code \ --entrypoint /bin/sh \ - $(COSMWASM_OPTIMIZER_IMAGE) -lc "cargo install cosmwasm-check && cosmwasm-check contracts/artifacts/*.wasm" + $(COSMWASM_OPTIMIZER_IMAGE) -lc '. "$$HOME/.cargo/env" && cargo install cosmwasm-check && cosmwasm-check contracts/artifacts/*.wasm' wasm-opt-contracts: @for WASM in $(WASM_CONTRACT_DIR)/*.wasm; do \