Git Product home page Git Product logo

dsteem's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dsteem's Issues

TN: Better support for testnets

As an automation or test-suite I want the ability to very easily set the unique aspects of the testnet to which I am connecting, so that I can be more fully automated, reliable, and save the developers that use me time.

AC

  • TBD - but provide facilities for automated chain id discovery and use when in a test oriented environment.

Update for SMTs

dsteem needs to support serialization of new ops for SMTs.

Testnet api issue

I'm trying to use the live testnet node described here https://developers.steem.io/testnet/

but I'm getting the error "Invalid cast from type 'array_type' to Object" while trying using the comment command (trying to post something).

Here's my code using dsteem lib:

testnetApi = new dsteem.Client('https://testnet.steemitdev.com', {
    chainId: '46d82ab7d8db682eb1959aed0ada039a6d49afa1602491f93dde9cac3e8e6c32',
    prefix: 'TST'
});
testnetDSapi.broadcast.comment(article, key);

article object:

    article.parent_author = '';
    article.title = 'blablah';                
    article.author = username;
    article.parent_permlink = tags[0];
    article.permlink = 'valid_permlink'
    article.json_metadata = JSON.stringify({
        tags: tags
     });

permlink.size() > STEEM_MIN_PERMLINK_LENGTH && permlink.size() < STEEM_MAX_PERMLINK_LENGTH: Permlink is not a valid size.

Using [email protected].

Hi the server is telling me the error in the title while I'm trying to submit a post using dsteem lib to steemit.

Full error object:

context:
file: "steem_evaluator.cpp"
hostname: ""
level: "error"
line: 50
method: "validate_permlink_0_1"
timestamp: "xxxxxxxxxx"

I'm trying to submit a permlink of size 59 bytes. For example:

uytgfr6-aswer-asde-asdfg-aswe-aswqerdft-20181025t102537007z

I see at the steem config files that the max permlink constant is 256 bytes. Then why am I getting the error?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.