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