We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62b0ac9 commit 0c655eeCopy full SHA for 0c655ee
packages/transaction-controller/src/utils/gas.ts
@@ -141,6 +141,11 @@ async function getGas(
141
return [txMeta.txParams.gas, undefined, txMeta.txParams.gas];
142
}
143
144
+ if (txMeta.txParams.gasLimit) {
145
+ log('Using value from request', txMeta.txParams.gasLimit);
146
+ return [txMeta.txParams.gasLimit, undefined, txMeta.txParams.gasLimit];
147
+ }
148
+
149
if (await requiresFixedGas(request)) {
150
log('Using fixed value', FIXED_GAS);
151
return [FIXED_GAS, undefined, FIXED_GAS];
0 commit comments