Skip to content

Commit

Permalink
fix for 1.2.11 quantity > amount
Browse files Browse the repository at this point in the history
  • Loading branch information
deemru committed Aug 26, 2020
1 parent 1ad164b commit f87c63b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WavesKit.php
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,7 @@ public function txBurn( $asset, $quantity, $options = null )
$tx['senderPublicKey'] = isset( $options['senderPublicKey'] ) ? $options['senderPublicKey'] : $this->getPublicKey();
$tx['fee'] = isset( $options['fee'] ) ? $options['fee'] : 100000;
$tx['timestamp'] = isset( $options['timestamp'] ) ? $options['timestamp'] : $this->timestamp();
$tx['quantity'] = $quantity;
$tx['amount'] = $quantity;
$tx['assetId'] = $asset;
return $tx;
}
Expand Down Expand Up @@ -2013,7 +2013,7 @@ public function txBody( $tx )
$body .= $this->getChainId();
$body .= $this->base58Decode( $tx['senderPublicKey'] );
$body .= $this->base58Decode( $tx['assetId'] );
$body .= pack( 'J', $tx['quantity'] );
$body .= pack( 'J', $tx['amount'] );
$body .= pack( 'J', $tx['fee'] );
$body .= pack( 'J', $tx['timestamp'] );
break;
Expand Down

0 comments on commit f87c63b

Please sign in to comment.