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:
parent
7dbc336122
commit
5de542898c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user