Skip to content

Commit

Permalink
use enum for defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
thedoublejay committed May 19, 2021
1 parent d385530 commit f199caa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/jellyfish-api-core/src/category/mining.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class Mining {
/**
*
* @param {number} confirmationTarget in blocks (1 - 1008)
* @param {EstimateMode} [estimateMode='CONSERVATIVE'] estimateMode of fees.
* @param {EstimateMode} [estimateMode=EstimateMode.CONSERVATIVE] estimateMode of fees.
* @returns {Promise<SmartFeeEstimation>}
*/
async estimateSmartFee (confirmationTarget: number, estimateMode: EstimateMode = EstimateMode.CONSERVATIVE): Promise<SmartFeeEstimation> {
Expand Down
2 changes: 1 addition & 1 deletion website/docs/jellyfish/api/mining.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Estimates the approximate fee per kilobyte needed for a transaction

```ts title="client.mining.estimateSmartFee()"
interface mining {
estimateSmartFee (confirmationTarget: number, estimateMode: EstimateMode = 'CONSERVATIVE'): Promise<SmartFeeEstimation>
estimateSmartFee (confirmationTarget: number, estimateMode: EstimateMode = EstimateMode.CONSERVATIVE): Promise<SmartFeeEstimation>
}

interface SmartFeeEstimation {
Expand Down

0 comments on commit f199caa

Please sign in to comment.