neo-node
neo-node copied to clipboard
no way to deploy contract w/o parameters via neo-cli
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
invoke also doesn't work correctly for scripts w/o input parameters
Hello @devhawk, did you try using []? Did you try using 00 (void)?
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
neo2 right?
Yes neo 2
Is there any plan to tackle this issue?
Are there any updates on this?
It's been almost a year... Chop chop :)
We'll fix it recently, and also on Neo3.
Old, if remains, please re-open