Skip to content

Commit 2c59e79

Browse files
committed
don't override gas price
1 parent 8b57128 commit 2c59e79

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Assets/Thirdweb/Core/Scripts/Transaction.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,7 @@ public async Task<Transaction> Populate()
375375
if (Input.MaxFeePerGas == null && Input.MaxPriorityFeePerGas == null)
376376
{
377377
ThirdwebDebug.Log("Using Legacy Gas Pricing");
378-
var gasPrice = await GetGasPrice();
379-
Input.GasPrice = new HexBigInteger(gasPrice);
378+
Input.GasPrice ??= new HexBigInteger(await GetGasPrice());
380379
}
381380
}
382381
return this;

0 commit comments

Comments
 (0)