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

no way to deploy contract w/o parameters via neo-cli

Open devhawk opened this issue 5 years ago • 9 comments

neo-cli deploy command expects the second param to be a hex byte array describing the parameter types. However, there is no way to specify that a contract has no parameters. There should be a special token such as <none> that the caller can specify to indicate there are no parameters

devhawk avatar Nov 21 '19 20:11 devhawk

invoke also doesn't work correctly for scripts w/o input parameters

devhawk avatar Nov 21 '19 20:11 devhawk

Hello @devhawk, did you try using []? Did you try using 00 (void)?

lock9 avatar Nov 21 '19 20:11 lock9

I reviewed the code. it simply calls HexToBytes, so [] wouldn't work. I could see using void as the special token (though void is FF not 00) but it would need to be handled special not just passed to HexToBytes as is done today

devhawk avatar Nov 21 '19 22:11 devhawk

neo2 right?

shargon avatar Nov 22 '19 07:11 shargon

Yes neo 2

devhawk avatar Nov 22 '19 15:11 devhawk

Is there any plan to tackle this issue?

tarikstafford avatar Aug 12 '20 20:08 tarikstafford

Are there any updates on this?

hlogeon avatar Aug 24 '20 14:08 hlogeon

It's been almost a year... Chop chop :)

enqvida avatar Aug 24 '20 14:08 enqvida

We'll fix it recently, and also on Neo3.

Tommo-L avatar Aug 28 '20 12:08 Tommo-L

Old, if remains, please re-open

shargon avatar Dec 05 '23 13:12 shargon