Broadcast Critical Bug Was Fixed [php-graphene-node-client v3.1.1]

in #utopian-io6 years ago (edited)

php-graphene-node-client

It is PHP API client for Steem/GOLOS blockchain

Github or packagist with MIT license. Author @t3ran13 and active helper @semasping

In Release v3.1.1

  • broadcast critical bug was fixed
  • deleted trash from code

Broadcast critical bug

When you send transactions to STEEM/GOLOS with non-latin chars in operations, for example send post to blockchain with non-latin chars in title or body, you got error: "3030000 tx_missing_posting_auth: missing required posting authority".

Now it is fixed with too steps

  • you have to update component t3ran13/bytebuffer to version 1.0.1. Chars format was changed from signed to unsigned chars ('c*' -> 'C*') for unpuck function.
  • added flag JSON_UNESCAPED_UNICODE to json_encode function for multi-byte symbols in WSConnectorAbstract.php

Just run composer update in cmd and all will be fixed.

Now you can use any non-latin chars in operations of transaction where it is possible.
For example


 $strPermlink = '...Post perm link...';
    $strAuthor = '...Account...';
    $strPostingWif = '...Private posting wif...';
    $strMainTag = '...Main tag...';
    $connector = new GolosWSConnector();
    $answer = OpComment::doSynchronous(
        $connector,
        $strPostingWif,
        $strAuthor,
        $strPermlink,
        'Русский',
        '스팀잇 활동에 대한 고민 그리고 보팅 지원',
        json_encode([
            'tags' => ['golos'],
            'format' => 'markdown',
        ]),
        $strMainTag,
        ''
    );


It is better with each commit

Commits were done by me for release v3.1.1

  • delete trash from code
  • fix critical bug



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Your contribution cannot be approved because it is very small contribution in terms of code, this type of posts may be accepted in future once we have a quality slider but owing to the high reward, I cannot accept it now.

You can contact us on Discord.
[utopian-moderator]

Could you accept it without reward? It Is important for lib

As of now there is no feature like this that we will accept it without any reward, but developers are working to have a quality slider as soon as possible.

Hey @codingdefined, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!

Terimakasih info nya sangat membantu @t3ran13