From c5521fda72b9b3ee76dbe43613da2fc746e5a475 Mon Sep 17 00:00:00 2001 From: Dmitrii Pichulin Date: Tue, 29 Oct 2019 00:34:45 +0300 Subject: [PATCH] fix typo asset > assetId --- src/WavesKit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WavesKit.php b/src/WavesKit.php index 5594223..527537f 100644 --- a/src/WavesKit.php +++ b/src/WavesKit.php @@ -2042,7 +2042,7 @@ public function txBody( $tx ) foreach( $tx['payment'] as $rec ) { $payments .= pack( 'J', $rec['amount'] ); - $payments .= isset( $rec['asset'] ) ? chr( 1 ) . $this->base58Decode( $rec['asset'] ) : chr( 0 ); + $payments .= isset( $rec['assetId'] ) ? ( chr( 1 ) . $this->base58Decode( $rec['assetId'] ) ) : chr( 0 ); } $body .= strlen( $payments ) ? ( pack( 'n', strlen( $payments ) ) . $payments ) : ''; $body .= pack( 'J', $tx['fee'] );