Skip to content

Commit

Permalink
convert ecsp getFee to number
Browse files Browse the repository at this point in the history
  • Loading branch information
kajoseph committed Jun 4, 2024
1 parent 22bbb04 commit fbc6b5b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ export class BaseEVMExternalStateProvider extends InternalStateProvider implemen
gasPrices.sort((a, b) => (a < b ? 1 : a > b ? -1 : 0));
const whichQuartile: number = Math.min(target, 4) || 1;
const quartileMedian: BigInt = StatsUtil.getNthQuartileMedian(gasPrices, whichQuartile);
const feerate = quartileMedian.toString();
// Fee returned in wei as a string
const feerate = Number(quartileMedian.toString());
// Fee returned in wei
return { feerate, blocks: target };
}

Expand Down

0 comments on commit fbc6b5b

Please sign in to comment.