You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to invoke the transfer method of the NeoToken, it is not intuitive what to do when one does not want to pass any data (i.e., the 4th parameter). I tried with simply null but that disregards that parameter and tries to invoke a method transfer with only 3 parameters (which doesn't exist and thus fails).
Suggestion: Allow passing a value in interactive mode which would translate to the opcode PUSHNULL in the invoke script. For example, simply null like mentioned above.
The text was updated successfully, but these errors were encountered:
New observation: If you write null in the interactive mode, nothing is added to the actual .json file. If I add null manually in the JSON editor mode, it converts to the PUSHNULL opcode in the invoke script as expected.
mialbu
changed the title
Accept parameter value null in neo-invoke scripts
Accept parameter value null in neo-invoke.json interactive mode
Apr 4, 2023
When trying to invoke the
transfer
method of the NeoToken, it is not intuitive what to do when one does not want to pass any data (i.e., the 4th parameter). I tried with simplynull
but that disregards that parameter and tries to invoke a methodtransfer
with only 3 parameters (which doesn't exist and thus fails).Suggestion: Allow passing a value in interactive mode which would translate to the opcode
PUSHNULL
in the invoke script. For example, simplynull
like mentioned above.The text was updated successfully, but these errors were encountered: