|
|
|
@ -96,9 +96,10 @@ function mapDispatchToProps (dispatch) { |
|
|
|
|
|
|
|
|
|
return dispatch(updateTransaction(editingTx)) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
addToAddressBookIfNew: (newAddress, toAccounts, nickname = '') => { |
|
|
|
|
const hexPrefixedAddress = ethUtil.addHexPrefix(newAddress) |
|
|
|
|
if (addressIsNew(toAccounts)) { |
|
|
|
|
if (addressIsNew(toAccounts, hexPrefixedAddress)) { |
|
|
|
|
// TODO: nickname, i.e. addToAddressBook(recipient, nickname)
|
|
|
|
|
dispatch(addToAddressBook(hexPrefixedAddress, nickname)) |
|
|
|
|
} |
|
|
|
|