We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Use RpcClient to call following code.
RpcApplicationLog applicationLog = rpcClient.GetApplicationLogAsync("0x96cb71e07a998ef4de61cffa5ac6966c25d8e45c09154cacc0b3d1fc3f2c6c87").Result; Console.WriteLine(applicationLog.ToJson());
use rpcserver:
Request:
{ "jsonrpc": "2.0", "method": "getapplicationlog", "params": ["0x96cb71e07a998ef4de61cffa5ac6966c25d8e45c09154cacc0b3d1fc3f2c6c87"], "id": 1 }
Response:
{ "jsonrpc": "2.0", "id": 1, "result": { "txid": "0x96cb71e07a998ef4de61cffa5ac6966c25d8e45c09154cacc0b3d1fc3f2c6c87", "trigger": "Application", "vmstate": "HALT", "gasconsumed": "9007960", "stack": [ { "type": "Boolean", "value": true } ], "notifications": [ { "contract": "0x668e0c1f9d7b70a99dd9e06eadd4c784d641afbc", "eventname": "Transfer", "state": { "type": "Array", "value": [ { "type": "Any" }, { "type": "ByteString", "value": "sTvq6eLtwtEFXYEWs3q3ccXFRnY=" }, { "type": "Integer", "value": "8500" } ] } }, { "contract": "0xde5f57d430d3dece511cf975a8d37848cb9e0525", "eventname": "Transfer", "state": { "type": "Array", "value": [ { "type": "ByteString", "value": "sTvq6eLtwtEFXYEWs3q3ccXFRnY=" }, { "type": "ByteString", "value": "Wejy6zUhjWo8DyOhafPXyv8r3Sg=" }, { "type": "Integer", "value": "1" } ] } } ] } }
Expected behavior RpcApplicationLog should deal with Type: Any correctly.
Screenshots
Platform:
Root Cause:
neo-modules/src/RpcClient/Models/RpcApplicationLog.cs
Lines 66 to 72 in fed3f7a
neo-modules/src/RpcClient/Utility.cs
Lines 203 to 239 in fed3f7a
There is no logic for type any, so it returns null which lead to the exception.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
Use RpcClient to call following code.
use rpcserver:
Request:
Response:
Expected behavior
RpcApplicationLog should deal with Type: Any correctly.
Screenshots
Platform:
Root Cause:
neo-modules/src/RpcClient/Models/RpcApplicationLog.cs
Lines 66 to 72 in fed3f7a
neo-modules/src/RpcClient/Utility.cs
Lines 203 to 239 in fed3f7a
There is no logic for type any, so it returns null which lead to the exception.
The text was updated successfully, but these errors were encountered: