Skip to content

Commit

Permalink
don't override gas price
Browse files Browse the repository at this point in the history
  • Loading branch information
0xFirekeeper committed Jul 25, 2024
1 parent 8b57128 commit 2c59e79
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Assets/Thirdweb/Core/Scripts/Transaction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,7 @@ public async Task<Transaction> Populate()
if (Input.MaxFeePerGas == null && Input.MaxPriorityFeePerGas == null)
{
ThirdwebDebug.Log("Using Legacy Gas Pricing");
var gasPrice = await GetGasPrice();
Input.GasPrice = new HexBigInteger(gasPrice);
Input.GasPrice ??= new HexBigInteger(await GetGasPrice());
}
}
return this;
Expand Down

0 comments on commit 2c59e79

Please sign in to comment.