matter-labs / zksync-cli

CLI tool that simplifies ZKsync development
MIT License
166 stars 96 forks source link

fix: parse array args correctly #166

Closed itsacoyote closed 2 months ago

itsacoyote commented 2 months ago

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

github-actions[bot] commented 2 months ago

:tada: This PR is included in version 1.9.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: