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

Getting "failed to execute message; message index: 0: exceeds limit: create wasm contract failed" on a cw721_base contract #1342

Closed
xmichael446 opened this issue Apr 17, 2023 · 4 comments
Assignees
Milestone

Comments

@xmichael446
Copy link

Hi there! I've compiled the cw721_base contract from the cw-nfts repository and I've been trying to upload it to the blockchain (my own, on cosmos sdk). I don't think I have any problems with the chain itself coz I've been able to successfully upload other contracts (nameservice, escrow). The error message I'm getting is very strange: "failed to execute message; message index: 0: exceeds limit: create wasm contract failed". Would be grateful if you guys could somehow assist.

@webmaster128
Copy link
Member

This smells like your .wasm file is too big because you did not perform a release build or use rust-optimizer. How large is your .wasm?

@alpe is "exceeds limit" the max Wasm size?

@alpe
Copy link
Contributor

alpe commented Apr 18, 2023

yes, this error messages is returned when the wasm contract is to big

@webmaster128
Copy link
Member

okay, in this case we should make the error message easier to understand

@webmaster128 webmaster128 transferred this issue from CosmWasm/cosmwasm Apr 18, 2023
@alpe alpe added this to the v0.32.0 milestone Apr 21, 2023
@alpe alpe self-assigned this Apr 21, 2023
@alpe
Copy link
Contributor

alpe commented Apr 21, 2023

Fixed in both branches

@alpe alpe closed this as completed Apr 21, 2023
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

3 participants