mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
f0f5554846
The `metamask.send.from` field was assumed by various selectors to be an object, but instead it was recently set to a string. The selectors have been updated to assume it's a string, and to fetch the full account object explicitly. The selector `getSendFromObject` was repurposed for this, as that's basically what it already did. The optional address parameter was removed though, as that was only used to fetch the `from` address in cases where the `send` state was set without there being a `from` address set. That case is no longer possible, as the `from` address is always set upon the initialization of the `send` state. The `getSendFromObject` selector no longer fetches the 'name' of that address from the address book state either. This property was not used in either of the cases this selector was used. |
||
---|---|---|
.. | ||
common.util.js | ||
common.util.test.js | ||
confirm-tx.util.js | ||
confirm-tx.util.test.js | ||
conversion-util.js | ||
conversion-util.test.js | ||
conversions.util.js | ||
fetch-with-cache.js | ||
fetch-with-cache.test.js | ||
formatters.js | ||
gas-time-estimates.util.js | ||
i18n-helper.js | ||
i18n-helper.test.js | ||
metametrics.util.js | ||
switch-direction.js | ||
token-util.js | ||
transactions.util.js | ||
transactions.util.test.js | ||
util.js | ||
util.test.js |