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

Passing arrays as args #13

Open
GarrettJMU opened this issue Feb 5, 2022 · 0 comments
Open

Passing arrays as args #13

GarrettJMU opened this issue Feb 5, 2022 · 0 comments

Comments

@GarrettJMU
Copy link

This is probably due to my lack of understanding of bash and/or zsh.

npx hardhat golf:contract --contract Foo --func mintManyToSender --params ("value"),1,"0x0" 

// returns
zsh: no matches found: (value),1,0x0

this fails because ("value") gets interpreted as a string. This doesn't even compile

If I set a reference above it doesn't pass the reference:

array=(value)
npx hardhat golf:contract --contract Foo --func mintManyToSender --params array,1,"0x0" 

This compiles BUT errors out with this:

  reason: 'invalid value for array',
  code: 'INVALID_ARGUMENT',
  argument: 'value',
  value: 'array'

Any ideas? I'm sure this will be an issue with others as well but again don't think it's necessarily related to this package just understanding of bash 😄

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

1 participant