1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix getFullTxData so that customTxParamsData is not lost (#16805)

Co-authored-by: Pedro Figueiredo <ganseki.figueiredo@gmail.com>
This commit is contained in:
Dan J Miller 2022-12-05 16:04:06 -03:30
parent e52fd71b1b
commit e3533878f4

View File

@ -841,7 +841,7 @@ export const getFullTxData = createDeepEqualSelector(
return getTransaction(state, transactionId);
},
(_state, _transactionId, _status, customTxParamsData) => customTxParamsData,
(txData, transaction, _status, customTxParamsData) => {
(txData, transaction, customTxParamsData) => {
let fullTxData = { ...txData, ...transaction };
if (transaction && transaction.simulationFails) {
txData.simulationFails = transaction.simulationFails;