steemit / steem

The blockchain for Smart Media Tokens (SMTs) and decentralized applications.
https://steem.com
Other
1.95k stars 793 forks source link

Listing proposals fails with Bad Cast:Invalid cast from uint64_type to Array #3479

Open syvb opened 5 years ago

syvb commented 5 years ago

Steem.js code (I beleive this is a problem with Steem tho):

steem.api.listProposals(0, 5, "by_total_votes", "ascending", "all", console.log)

fails with

Bad Cast:Invalid cast from uint64_type to Array
mvandeberg commented 5 years ago

This jsonrpc request works:

{"jsonrpc":"2.0", "method":"database_api.list_proposals", "params":{"start":[0,0], "limit":5, "order":"by_total_votes", "order_direction":"ascending", "status":"all"}, "id":1}

I am assuming this is the intent behind the Steem.js call.