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

neo-cli v3.0.3 - invoke type detection issue

Open vincentgeneste opened this issue 4 years ago • 2 comments

When doing an invoke on neo-cli v3.0.3, the Integer type is not recognized properly:

invoke 0x590635eaf2364ba03dade7ed9a54efa20d72eba9 setCustomFee [{"type":"Hash160","value":"b137c83610d3f0331a48d8d6283864120b4f23a1"},{"type":"Integer","value":300}]

works and interprets correctly the value as 300, while

invoke 0x590635eaf2364ba03dade7ed9a54efa20d72eba9 setCustomFee [{"type":"Hash160","value":"b137c83610d3f0331a48d8d6283864120b4f23a1"},{"type":"Integer","value":"300"}]

doesnt work and converts literally "300" instead of detecting it as an integer. I would expect with a type field to have not to worry about this.

vincentgeneste avatar Oct 27 '21 15:10 vincentgeneste

image

It works for me with "300"

shargon avatar Oct 28 '21 07:10 shargon

It breaks if there are spaces in value of string type. Screen Shot 2021-12-05 at 1 55 08 PM

ediopia avatar Dec 05 '21 21:12 ediopia

Old, if remains, please re-open

shargon avatar Dec 05 '23 13:12 shargon