We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02cf672 commit fe8dcfeCopy full SHA for fe8dcfe
packages/transaction-preview/src/simulateTransactions.ts
@@ -18,7 +18,7 @@ const simulateTransactions = async (
18
const cleanedTrans = {
19
from: convertedTransaction.from,
20
to: convertedTransaction.to,
21
- gas: convertedTransaction.gas,
+ gas: convertedTransaction.gas || convertedTransaction.gasLimit || 0,
22
gasPrice: convertedTransaction.gasPrice,
23
maxFeePerGas: convertedTransaction.maxFeePerGas,
24
maxPriorityFeePerGas: convertedTransaction.maxPriorityFeePerGas,
packages/transaction-preview/src/utils.ts
@@ -42,6 +42,7 @@ type TransactionRequestWithNumberFields = TransactionForSim & {
42
gas: number
43
value: number
44
gasPrice?: number
45
+ gasLimit?: number
46
maxPriorityFeePerGas?: number
47
maxFeePerGas?: number
48
}
0 commit comments