Chainers / Ditch

Create and broadcast transactions to Graphene-based blockchains
MIT License
33 stars 26 forks source link

Assert Exception:v.is_object(): Input data have to treated as object. #18

Closed petermail closed 6 years ago

petermail commented 6 years ago

Hi, when I invoke mehod VoteTest() from Steemit Tests project, it fails with response: _Ditch.Core.Errors.ResponseError. Code: '-32003'. Message: 'Assert Exception:v.isobject(): Input data have to treated as object.'

Do you have any idea why is that? PostTest() returns the same response. I suspect that sent operation has wrong structure but I am not sure how to correct it. Do you know how to fix it?

KorzunAV commented 6 years ago

Hi! You probably try to connect to https://api.steemit.com. They start to use new format for asset ({ "amount": "1000", "precision": 3, "nai": "@@000000021" } instead [ "1000", 3, "@@000000021"]). I will fix it when this format will be stabl. You may use previos version https://www.nuget.org/packages/Ditch.Steem/3.0.15 + https://www.nuget.org/packages/Ditch.Core/3.1.1 it works with hf0.19.0 and api.steemit.com accept old requests by using Jussi (https://github.com/steemit/jussi)

KorzunAV commented 6 years ago

v4.0.0 adds BroadcastOperationsSynchronousLikeSteemit function to solve issues with steemit + assets accept several formats now