1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 03:36:18 +02:00
metamask-extension/ui/app/pages/send
Mark Stacey f0f5554846
Fix selectors that use metamask.send.from state (#8182)
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.
2020-03-11 15:40:35 -03:00
..
account-list-item Enable arrow-parens ESLint rule 2020-02-15 17:04:21 -03:30
send-content LoginPerSite: Support multiple accounts without automatic switching (#8079) 2020-03-06 13:34:56 -08:00
send-footer Fix selectors that use metamask.send.from state (#8182) 2020-03-11 15:40:35 -03:00
send-header Update sinon and proxyquire (#8027) 2020-02-11 17:03:32 -03:30
tests Fix selectors that use metamask.send.from state (#8182) 2020-03-11 15:40:35 -03:00
index.js Add token selection to the send screen (#6445) 2019-04-17 16:45:13 -02:30
send.component.js Enable arrow-parens ESLint rule 2020-02-15 17:04:21 -03:30
send.constants.js Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
send.container.js Fix selectors that use metamask.send.from state (#8182) 2020-03-11 15:40:35 -03:00
send.scss Right-to-left CSS (using module for conversion) (#7072) 2019-09-03 14:47:54 -03:00
send.selectors.js Fix selectors that use metamask.send.from state (#8182) 2020-03-11 15:40:35 -03:00
send.utils.js Enable arrow-parens ESLint rule 2020-02-15 17:04:21 -03:30