JsonRpcApi input & output differs from C# #233
Comments
I need to add one more difference in representation C#
|
Very nice, detective @ixje. |
Issue 3 C#
vs neo-python.
|
Issue 3 has been addressed in #267. I'm going to take a look at the other issues here in a bit. |
For issue 1, I would actually argue that's a bug in the C# implementation. JSON doesn't support strings with single quotes, so I think getting an error in that case is justifiable. Thoughts? |
* Fixed the VMState output from JSON-RPC so it properly reflects the same string output as the C# implementation. * Fixed integer value outputs so that they are represented as a String, which is consistent with the C# implementation. * Fixed `ContractParameterType` outputs so that they use the String representation instead of a hex representation for consistency with the C# implementation. CityOfZion#233
issue 2 is fixed in #272, so the only outstanding question here is if we want to do anything for issue 1 or not. |
I think not, but I'm not religious about it. I think we can just stick with standard JSON. I did a quick look, and we'd probably have to switch to a custom "flexible" JSON decoder, rather than the standard ones. |
Thanks so much @ixje and @brianlenz for documenting the efforts here. Closing this issue now, in favor of #273 |
Just a note for future readers, these issues are fixed on the current dev branch ( |
issue 1
C# accepts single quotes
JsonRpcApi does not and will have an error saying:
The actual error message is dropped and says
issue 2
C# returns full names for the VMstate and Stack types after execution e.g.
JsonRpcApi gives VM state and stack type as (string) numbers to indicate the same. Note: the only difference in the calls is the scripthash I'm talking to.
The text was updated successfully, but these errors were encountered: