Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
daniel-farina opened this issue Jul 20, 2022 · 2 comments
Closed

Comments

@daniel-farina
Copy link
Contributor

daniel-farina commented Jul 20, 2022

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 daniel-farina changed the title not found, please build and optimize the contract before store code` not found, please build and optimize the contract before store code Jul 20, 2022
@daniel-farina
Copy link
Contributor Author

I noticed the --aarch64 flag

image

still not working

@daniel-farina
Copy link
Contributor Author

daniel-farina commented Jul 20, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant