neo-node icon indicating copy to clipboard operation
neo-node copied to clipboard

neo-cli v3.0.3 - parser improvements

Open vincentgeneste opened this issue 3 years ago • 1 comments

  1. When doing an invoke on neo-cli 3.0.3, if it requires sender but it's not passed, the error returned is

Error: Index was outside the bounds of the array.

this could/should be more explicit and says that sender has to be passed maybe ?

  1. When using the option maxGas on an invoke, the parser helper says it should be

invoke <scriptHash> <operation> [contractParameters=null] [sender=null] [signerAccounts=null] [maxGas=20]

but if we pass only invoke <scriptHash> <operation> [contractParameters=null] [sender=null] [maxGas=20] (without signerAccounts as the helper says), it does not work and expects both maxGas and signerAccounts, which i don't think is normal.

vincentgeneste avatar Oct 27 '21 15:10 vincentgeneste

You can only skip consecutive elements from the right

shargon avatar Oct 28 '21 07:10 shargon

Old, if remains, please re-open

shargon avatar Dec 05 '23 13:12 shargon