1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

Fixing issue with gasLimit in transaction being 0 (#18682)

This commit is contained in:
Jyoti Puri 2023-04-21 11:17:38 +05:30 committed by GitHub
parent 3c01011ffe
commit 7f00c2f313
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -802,8 +802,8 @@ export default class TransactionController extends EventEmitter {
this.txStateManager.getTransactionWithActionId(actionId);
if (existingTxMeta) {
this.emit('newUnapprovedTx', existingTxMeta);
this._requestApproval(existingTxMeta);
existingTxMeta = await this.addTransactionGasDefaults(existingTxMeta);
this._requestApproval(existingTxMeta);
return existingTxMeta;
}
}
@ -875,9 +875,9 @@ export default class TransactionController extends EventEmitter {
this.addTransaction(txMeta);
this.emit('newUnapprovedTx', txMeta);
this._requestApproval(txMeta);
txMeta = await this.addTransactionGasDefaults(txMeta);
this._requestApproval(txMeta);
return txMeta;
}