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

More helpful error message when the user supplies a raw wasm module #146

Open
abizjak opened this issue May 24, 2022 · 0 comments
Open

More helpful error message when the user supplies a raw wasm module #146

abizjak opened this issue May 24, 2022 · 0 comments
Labels
good first issue Good for newcomers [Prio] Low Should be fixed if time permits but can be postponed. [Type] Change Request Some visible functionality should be change.

Comments

@abizjak
Copy link
Contributor

abizjak commented May 24, 2022

Description

When the user supplies a raw wasm module to module deploy the error message is not the most descriptive

Error: Supplied file 'piggy_bank_part1.wasm' cannot be parsed as a smart contract module to be deployed:

This would happen if the user built a wasm module without the version information and did not supply the --contract-version flag.

It would be good if this common case was covered by a more helpful error message.

Steps to Reproduce

Try to deploy a wasm module without supplying the --contract-version flag.

Expected Result

A helpful error message pointing out the common causes for the failure.

Actual Result

Error: Supplied file 'piggy_bank_part1.wasm' cannot be parsed as a smart contract module to be deployed:

Versions

  • Software Version: 4.*

┆Issue is synchronized with this Jira Task by Unito

@abizjak abizjak added [Type] Change Request Some visible functionality should be change. good first issue Good for newcomers [Prio] Low Should be fixed if time permits but can be postponed. labels May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers [Prio] Low Should be fixed if time permits but can be postponed. [Type] Change Request Some visible functionality should be change.
Projects
None yet
Development

No branches or pull requests

1 participant