deemru / WavesKit

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

txInvokeScript returns false - still not working #7

Closed LuisaFraub closed 5 years ago

LuisaFraub commented 5 years ago

I tried with the fix #6 , but nothing has change: may I try something else? there's a way to get exactly the answer from Waves? Probably there's something wrong with my code...

deemru commented 5 years ago

This code works on WavesKit 1.0.12:

$wk = new WavesKit( 'T' );
$wk->setSeed( "" );
$args = [
    'eee',
    '{"titolo":"eee","descrizione":"ytutyuty","allegato":""}'
];
$tx = $wk->txInvokeScript( '3MsJAaF5QnFSPWt1FbTYg2rZEYGE89zL9xm', "addItem", $args, null, [ "fee" => 900000 ] );
$tx = $wk->txSign( $tx );
$tx = $wk->txBroadcast( $tx );

If you still have problems, feel free to ask.

LuisaFraub commented 5 years ago

thank you, now it works fine! Definitely there was an error in my code ;-)