Skip to content

Commit

Permalink
fix: do not pass gasPrice to estimateGas (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
dohaki authored Sep 27, 2024
1 parent 4f21396 commit c009380
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/utils/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,7 @@ export async function estimateTotalGasRequiredByUnsignedTransaction(
const voidSigner = new VoidSigner(senderAddress, provider);

// Estimate the Gas units required to submit this transaction.
let nativeGasCost = gasUnits
? BigNumber.from(gasUnits)
: await voidSigner.estimateGas({
...unsignedTx,
gasPrice,
});
let nativeGasCost = gasUnits ? BigNumber.from(gasUnits) : await voidSigner.estimateGas(unsignedTx);
let tokenGasCost: BigNumber;

// OP stack is a special case; gas cost is computed by the SDK, without having to query price.
Expand Down

0 comments on commit c009380

Please sign in to comment.