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

Raise error when given string argument without prefix #420

Merged
merged 3 commits into from
Apr 19, 2024

Conversation

popenta
Copy link
Contributor

@popenta popenta commented Apr 17, 2024

The mxpy contract sub-commands now raise an error if a string argument was provided without the str: prefix.

@popenta popenta self-assigned this Apr 17, 2024
"--nonce", "7",
"--chain", "D",
"--gas-limit", "5000000",
"--arguments", "str:invalidargument",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe str:foobar (or something that doesn't say invalid argument).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. Changed.

@popenta popenta merged commit d3d45b1 into main Apr 19, 2024
8 checks passed
@popenta popenta deleted the raise-error-for-unknown-args branch April 19, 2024 09:21
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

Successfully merging this pull request may close these issues.

None yet

3 participants