We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b57128 commit 2c59e79Copy full SHA for 2c59e79
Assets/Thirdweb/Core/Scripts/Transaction.cs
@@ -375,8 +375,7 @@ public async Task<Transaction> Populate()
375
if (Input.MaxFeePerGas == null && Input.MaxPriorityFeePerGas == null)
376
{
377
ThirdwebDebug.Log("Using Legacy Gas Pricing");
378
- var gasPrice = await GetGasPrice();
379
- Input.GasPrice = new HexBigInteger(gasPrice);
+ Input.GasPrice ??= new HexBigInteger(await GetGasPrice());
380
}
381
382
return this;
0 commit comments