mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 11:01:41 +01:00
043920c9ff
* Ensure address book send flow correctly matches address book addresses to ens addresses * Use nodify on background.setAddressBook to receive correct result in actions.js * Better error handling for actions.js addToAddressBook * Eliminate unnecessary data normalization and move more data manipluation to ens-input and send-content containers
24 lines
548 B
JavaScript
24 lines
548 B
JavaScript
import EnsInput from './ens-input.component'
|
|
import {
|
|
getCurrentNetwork,
|
|
getSendTo,
|
|
getSendToNickname,
|
|
} from '../../send.selectors'
|
|
import {
|
|
getAddressBookEntry,
|
|
} from '../../../../selectors/selectors'
|
|
const connect = require('react-redux').connect
|
|
|
|
|
|
export default connect(
|
|
state => {
|
|
const selectedAddress = getSendTo(state)
|
|
return {
|
|
network: getCurrentNetwork(state),
|
|
selectedAddress,
|
|
selectedName: getSendToNickname(state),
|
|
contact: getAddressBookEntry(state, selectedAddress),
|
|
}
|
|
}
|
|
)(EnsInput)
|