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

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
·@t3ran13·
0.000 HBD
Broadcast Critical Bug Was Fixed [php-graphene-node-client v3.1.1]
# php-graphene-node-client
It is PHP API client for Steem/GOLOS blockchain

[Github](https://github.com/t3ran13/php-graphene-node-client) or [packagist](https://packagist.org/packages/t3ran13/php-graphene-node-client) with MIT license. Author @t3ran13 and active helper @semasping

## In Release [v3.1.1](https://github.com/t3ran13/php-graphene-node-client/releases/tag/v3.1.0)
- 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

```php

 $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](https://github.com/t3ran13/php-graphene-node-client/commits/master) were done by me for release v3.1.1
- delete trash from code
- fix critical bug 


<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@t3ran13/broadcast-critical-bug-was-fixed-php-graphene-node-client-v3-1-1">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,