deemru / WavesKit

Waves Platform Development Kit for PHP
https://packagist.org/packages/deemru/waveskit
MIT License
24 stars 8 forks source link

txInvokeScript return false #6

Closed LuisaFraub closed 5 years ago

LuisaFraub commented 5 years ago

Hi, I'm using the latest version of the WavesKit, txInvokeScript function in particular. $wk = new WavesKit( 'T' ); // 'T' for testnet $wk->setSeed( $user_bc_seed ); $options = array( "fee" => 900000 ); $args = [ $titolo, $arrayData ]; $tx = $wk->txSign( $tx ); $tx = $wk->txInvokeScript( $user_bc_address, "addItem", $args, null, $options); $tx = $wk->txBroadcast( $tx ); $response = json_encode($tx);

$tx before txBroadcast look like { "type":16, "version":1, "sender":"3MsJAaF5QnFSPWt1FbTYg2rZEYGE89zL9xm", "senderPublicKey":"AuwNnJne9DDzFJMVzgSTvELEvJKcS6sAwa1pYot7NSZc", "timestamp":1565976714741, "dApp":"3MsJAaF5QnFSPWt1FbTYg2rZEYGE89zL9xm", "call":{ "function":"addItem", "args":[ {"type":"string","value":"eee"}, {"type":"string","value":"{\"titolo\":\"eee\",\"descrizione\":\"ytutyuty\",\"allegato\":\"\"}"}] }, "payment":[], "fee":500000, "chainId":84 }

The function addItem is a script deployed into dApp and works if called from Waves IDE. From my php code, I get FALSE as answer but I can't understand what happens.

Someone can help me? Thank in advance

deemru commented 5 years ago

Thanks for the report, it is fixed: https://github.com/deemru/WavesKit/commit/bc10e6ab852291546e14a673760c4e1f8e29ca17

Just use composer update.

LuisaFraub commented 5 years ago

I tried with the fix, but nothing has change: may I try something else?