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:
parent
19257361e5
commit
0a9c6023dc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user