|
|
@ -1714,8 +1714,10 @@ export function editExistingTransaction(assetType, transactionId) { |
|
|
|
...draftTransactionInitialState.recipient, |
|
|
|
...draftTransactionInitialState.recipient, |
|
|
|
address: transaction.txParams.to, |
|
|
|
address: transaction.txParams.to, |
|
|
|
nickname: |
|
|
|
nickname: |
|
|
|
getAddressBookEntryOrAccountName(state, transaction.txParams.to) |
|
|
|
getAddressBookEntryOrAccountName( |
|
|
|
?.name ?? '', |
|
|
|
state, |
|
|
|
|
|
|
|
transaction.txParams.to, |
|
|
|
|
|
|
|
) ?? '', |
|
|
|
}, |
|
|
|
}, |
|
|
|
amount: { |
|
|
|
amount: { |
|
|
|
...draftTransactionInitialState.amount, |
|
|
|
...draftTransactionInitialState.amount, |
|
|
@ -1739,8 +1741,7 @@ export function editExistingTransaction(assetType, transactionId) { |
|
|
|
const tokenAmountInDec = |
|
|
|
const tokenAmountInDec = |
|
|
|
assetType === ASSET_TYPES.TOKEN ? getTokenValueParam(tokenData) : '1'; |
|
|
|
assetType === ASSET_TYPES.TOKEN ? getTokenValueParam(tokenData) : '1'; |
|
|
|
const address = getTokenAddressParam(tokenData); |
|
|
|
const address = getTokenAddressParam(tokenData); |
|
|
|
const nickname = |
|
|
|
const nickname = getAddressBookEntryOrAccountName(state, address) ?? ''; |
|
|
|
getAddressBookEntryOrAccountName(state, address)?.name ?? ''; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const tokenAmountInHex = addHexPrefix( |
|
|
|
const tokenAmountInHex = addHexPrefix( |
|
|
|
conversionUtil(tokenAmountInDec, { |
|
|
|
conversionUtil(tokenAmountInDec, { |
|
|
|