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

fix: parse array args correctly #166

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

itsacoyote
Copy link
Contributor

@itsacoyote itsacoyote commented Aug 14, 2024

For contract commands read/write/encode, the args option does not format and encode array args properly and will error.

This fixes formatting incoming args if they are arrays into a format that will encode properly. Array args can be accepted as a full string with array brackets "[42,77]" or as a string input with comma separated values without the array brackets "42,77".

Fixes #164

@itsacoyote itsacoyote linked an issue Aug 14, 2024 that may be closed by this pull request
@itsacoyote itsacoyote force-pushed the 164-support-array-params-in-contract-read branch from 75e9d8b to dedf75f Compare August 14, 2024 15:01
@itsacoyote itsacoyote marked this pull request as ready for review August 14, 2024 15:01
@itsacoyote itsacoyote requested a review from a team as a code owner August 14, 2024 15:01
@itsacoyote itsacoyote marked this pull request as draft August 14, 2024 15:02
@itsacoyote itsacoyote marked this pull request as ready for review August 14, 2024 15:15
@itsacoyote itsacoyote merged commit cf1465c into main Aug 14, 2024
3 checks passed
@itsacoyote itsacoyote deleted the 164-support-array-params-in-contract-read branch August 14, 2024 19:18
Copy link

🎉 This PR is included in version 1.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Support array params in contract read
2 participants