Skip to content

Commit

Permalink
fix estimate tx commission
Browse files Browse the repository at this point in the history
  • Loading branch information
grkamil committed Oct 19, 2020
1 parent 81ab037 commit 1a11b54
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Minter/MinterAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,13 +352,7 @@ public function estimateCoinBuy(
*/
public function estimateTxCommission(string $tx, ?int $height = null): \stdClass
{
$params = ['tx' => $tx];

if($height) {
$params['height'] = $height;
}

return $this->get('estimate_tx_commission', $params);
return $this->get('estimate_tx_commission/' . $tx, ($height ? ['height' => $height] : null));
}

/**
Expand Down

0 comments on commit 1a11b54

Please sign in to comment.