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

Words
168
Reading
1 min
9y
Listen to this post
~1 min

php-graphene-node-client

It is PHP API client for Steem/GOLOS blockchain

Github or packagist with MIT license. Author t3ran13@t3ran13 and active helper semasping@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

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