Skip to content

Commit

Permalink
Merge branch 'master' into request-node-dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-abrioux committed Feb 9, 2022
2 parents 5d49068 + 12b4227 commit 307496f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/request-node/src/thegraph/TheGraphStorage.ts
Expand Up @@ -66,10 +66,10 @@ export class TheGraphStorage {
const suggestedFee = await suggestFees(
this.hashSubmitter.provider as providers.JsonRpcProvider,
);
overrides.maxFeePerGas = BigNumber.from(suggestedFee.baseFeeSuggestion);
overrides.maxPriorityFeePerGas = BigNumber.from(
suggestedFee.maxPriorityFeeSuggestions.urgent,
);
const maxPriorityFeePerGas = BigNumber.from(suggestedFee.maxPriorityFeeSuggestions.urgent);
const maxFeePerGas = maxPriorityFeePerGas.add(suggestedFee.baseFeeSuggestion);
overrides.maxPriorityFeePerGas = maxPriorityFeePerGas;
overrides.maxFeePerGas = maxFeePerGas;
} else {
// retro-compatibility for networks where the eth_feeHistory RPC method is not available (pre EIP-1559)
const gasPriceDefiner = new GasPriceDefiner();
Expand Down

0 comments on commit 307496f

Please sign in to comment.