1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00
metamask-extension/test/lib
Mark Stacey 165666b315
Remove unnecessary tx meta properties (#8489)
* Remove `estimatedGas` property from `txMeta`

The `estimatedGas` property was a cache of the gas value estimated for
a transaction when the default gas limit was set. This property wasn't
used anywhere. It may have been useful for debugging purposes, but the
same gas estimate is already stored on the `history` property so it
should be present in state logs regardless.

* Remove `gasLimitSpecified` txMeta property

The `gasLimitSpecified` property of `txMeta` wasn't used for anything.
It might have been useful for debugging purposes, but whether or not
the gas limit was specified can also be determined from looking at the
transaction history, so it's not a huge loss.

* Remove `gasPriceSpecified` txMeta property

The `gasPriceSpecified` property of `txMeta` wasn't used for anything.
It might have been useful for debugging purposes, but whether or not
the gas price was specified can also be determined from looking at the
transaction history, so it's not a huge loss.

* Remove `simpleSend` txMeta property

The `simpleSend` property of `txMeta` was used to ensure a buffer was
not added to the gas limit during gas estimation for simple send
transactions. It was made redundant by #8484, which accomplishes this
without the use of this property.
2020-05-01 08:44:05 -03:00
..
migrations Remove unnecessary tx meta properties (#8489) 2020-05-01 08:44:05 -03:00
createTxMeta.js Export individual fns from tx-state-history-helpers (#8370) 2020-04-20 13:00:51 -02:30
mock-encryptor.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
mock-tx-gen.js Remove usages of xtend from the background scripts (#7796) 2020-01-13 08:59:36 -10:00
react-trigger-change.js Enable no-var rule for ESLint (#7590) 2019-12-03 11:22:01 -03:30
render-helpers.js Remove tOrKey and tOrDefault functions from i18n context (#8211) 2020-03-19 01:03:20 -03:00
util.js Update ESLint rules for curly braces style (#7477) 2019-11-19 20:33:20 -03:30