osmosis-labs / beaker

Beaker helps streamlining CosmWasm development workflow.
Apache License 2.0
106 stars 30 forks source link

not found, please build and optimize the contract before store code #85

Closed daniel-farina closed 2 years ago

daniel-farina commented 2 years ago

When testing building some existing contracts, the artifacts folder does not get built because the optimization step fails.

System:

MAC OS M1

Reproduce by:

git clone https://github.com/xBalbinus/ion-dao-contracts
beaker wasm build
beaker wasm proposal store-code --proposal proposal.yaml --signer-account test1 --network testnet ion_dao --gas 25000000uosmo --gas-limit 25000000
image

then if we do the following it tells you that in fact the artifact is not present.

beaker wasm proposal store-code --proposal proposal.yaml --signer-account test1 --network testnet ion_dao --gas 25000000uosmo --gas-limit 25000000
Error: `/Users/web/code/ion-dao-contracts/artifacts/ion_dao.wasm` not found, please build and optimize the contract before store code`

Caused by:
    No such file or directory (os error 2)

Was there something missing when trying to add some custom contracts to deploy with beaker?

daniel-farina commented 2 years ago

I noticed the --aarch64 flag

image

still not working

daniel-farina commented 2 years ago

Ok this error is due to docker not running, the optimizer uses docker to do the optimization as documented on the Prerequisites.

It would be very nice for Beaker to let people know docker is not installed instead. Created #86 for this.

Closing this!