Incorrect number of required arguments in condenser `rc` methods.
I noticed the same problem in two methods in condenser_api
: list_rc_direct_delegations
and list_rc_accounts
. When I trying call this methods with 2 arguments receive: AssertionError: Assert Exception:args.size() == 3: Expected 3 arguments, was 2'
. When I give the third argument (according to the error message). It can be of any type (boolean, string, float, null). The methods response correctly.
{
"jsonrpc": "2.0",
"method": "condenser_api.list_rc_accounts",
"params": [
"initminer",
100,
"third-argument-in-any-type"
],
"id": 1
}
{
"jsonrpc": "2.0",
"method": "condenser_api.list_rc_direct_delegations",
"params": [
[
"initminer",
"blocktrades"
],
100,
"third-argument-in-any-type"
],
"id": 1
}
There are two options to consider:
- Error message incorrectly suggest that methods take 3 arguments when in fact expect 2.
- Methods incorrectly handle the third argument.