steem icon indicating copy to clipboard operation
steem copied to clipboard

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

Open syvb opened this issue 6 years ago • 1 comments

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

syvb avatar Aug 26 '19 22:08 syvb

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.

mvandeberg avatar Sep 04 '19 17:09 mvandeberg