1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

use latest instead of pending for fee history

This commit is contained in:
Bogdan Fazakas 2022-08-17 13:42:45 +03:00
parent 7dbc336122
commit 5de542898c

View File

@ -114,7 +114,7 @@ export async function sendTx(
gas: estGas + 1
}
try {
const feeHistory = await web3.eth.getFeeHistory(1, 'pending', [75])
const feeHistory = await web3.eth.getFeeHistory(1, 'latest', [75])
let aggressiveFee = new BigNumber(feeHistory?.reward?.[0]?.[0])
if (this.config?.gasFeeMultiplier > 1) {
aggressiveFee = aggressiveFee.multipliedBy(this.config?.gasFeeMultiplier)