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
3c01011ffe
commit
7f00c2f313
@ -802,8 +802,8 @@ export default class TransactionController extends EventEmitter {
|
|||||||
this.txStateManager.getTransactionWithActionId(actionId);
|
this.txStateManager.getTransactionWithActionId(actionId);
|
||||||
if (existingTxMeta) {
|
if (existingTxMeta) {
|
||||||
this.emit('newUnapprovedTx', existingTxMeta);
|
this.emit('newUnapprovedTx', existingTxMeta);
|
||||||
this._requestApproval(existingTxMeta);
|
|
||||||
existingTxMeta = await this.addTransactionGasDefaults(existingTxMeta);
|
existingTxMeta = await this.addTransactionGasDefaults(existingTxMeta);
|
||||||
|
this._requestApproval(existingTxMeta);
|
||||||
return existingTxMeta;
|
return existingTxMeta;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -875,9 +875,9 @@ export default class TransactionController extends EventEmitter {
|
|||||||
|
|
||||||
this.addTransaction(txMeta);
|
this.addTransaction(txMeta);
|
||||||
this.emit('newUnapprovedTx', txMeta);
|
this.emit('newUnapprovedTx', txMeta);
|
||||||
this._requestApproval(txMeta);
|
|
||||||
|
|
||||||
txMeta = await this.addTransactionGasDefaults(txMeta);
|
txMeta = await this.addTransactionGasDefaults(txMeta);
|
||||||
|
this._requestApproval(txMeta);
|
||||||
|
|
||||||
return txMeta;
|
return txMeta;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user