1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/test/unit/app/controllers/transactions
Mark Stacey 92592fc905
Ensure tx has value before it's added (#8486)
Previously a transaction would get assigned a default value during the
`addTxGasDefaults` function, after the transaction was added and sent
to the UI.

Instead the transaction is assigned a default value before it gets
added. This flow is simpler to follow, and it avoids the race condition
where the transaction is assigned a value from the UI before this
default is set. In that situation, the UI-assigned value would be
overridden, which is obviously not desired.
2020-04-30 21:50:44 -03:00
..
pending-tx-tracker-test.js
recipient-blacklist-checker-test.js
tx-controller-test.js
tx-gas-util-test.js
tx-helper-test.js
tx-state-history-helpers-test.js
tx-state-manager-test.js
tx-utils-test.js