-
Notifications
You must be signed in to change notification settings - Fork 188
getaccountstate returns different schema #713
Comments
@xxedocxx I think the neo-cli version is redundant. Why separate assets by list number? I think letting the asset be a dict key is much more user friendly and intuitive. See comparison below: neo-cli:
vs.
I prefer neo-python's version and think it is more efficient, and the functionality is the same. However, it would be a relatively easy change to make. |
Since the objective of |
@dethos the only problem with your argument is that your example is for a RPC method which is planned to not be included in the default JsonRpcApi like it is in neo-cli (see @ixje 's review here #633 (comment)). So, a default neo-python RPC server will not include this functionality. In my opinion, neo-python is striving to be the best version of neo-cli. Just my opinion. |
The comment is on a topic related to |
It already has broke some dapps who uses the rpc api and relying on nodes from http://monitor.cityofzion.io/ |
@xxedocxx I didn't know that. Sounds like this fix is definitely necessary then. I guess in my perfect world I would have suggested neo-cli update their RPC method to match neo-python instead of the other way around lol. |
Yes at least for the RPC side the idea is that they can seamlessly switch from one to the other, so this needs a fix if it deviates. The exclusion of As for the full port; I don't think the vision of a full port of |
Current behavior
Balances returns in object.
Expected behavior
It is supposed to return in array. Because neo-cli does.
From Neo python
balances:
{
'0x602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7': '14.00251105',
'0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b': '2.0'
}
From Neo cli
balances: [ [Object], [Object] ] } }
How to reproduce
Your environment
Let us know in what environment you're running into the issue:
The text was updated successfully, but these errors were encountered: