|
|
@ -143,6 +143,7 @@ var actions = { |
|
|
|
UPDATE_SEND_AMOUNT: 'UPDATE_SEND_AMOUNT', |
|
|
|
UPDATE_SEND_AMOUNT: 'UPDATE_SEND_AMOUNT', |
|
|
|
UPDATE_SEND_MEMO: 'UPDATE_SEND_MEMO', |
|
|
|
UPDATE_SEND_MEMO: 'UPDATE_SEND_MEMO', |
|
|
|
UPDATE_SEND_ERRORS: 'UPDATE_SEND_ERRORS', |
|
|
|
UPDATE_SEND_ERRORS: 'UPDATE_SEND_ERRORS', |
|
|
|
|
|
|
|
CLEAR_SEND: 'CLEAR_SEND', |
|
|
|
updateGasLimit, |
|
|
|
updateGasLimit, |
|
|
|
updateGasPrice, |
|
|
|
updateGasPrice, |
|
|
|
updateGasTotal, |
|
|
|
updateGasTotal, |
|
|
@ -151,6 +152,7 @@ var actions = { |
|
|
|
updateSendAmount, |
|
|
|
updateSendAmount, |
|
|
|
updateSendMemo, |
|
|
|
updateSendMemo, |
|
|
|
updateSendErrors, |
|
|
|
updateSendErrors, |
|
|
|
|
|
|
|
clearSend, |
|
|
|
setSelectedAddress, |
|
|
|
setSelectedAddress, |
|
|
|
// app messages
|
|
|
|
// app messages
|
|
|
|
confirmSeedWords: confirmSeedWords, |
|
|
|
confirmSeedWords: confirmSeedWords, |
|
|
@ -577,13 +579,18 @@ function updateSendMemo (memo) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function updateSendErrors (error) { |
|
|
|
function updateSendErrors (error) { |
|
|
|
console.log(`updateSendErrors error`, error); |
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
type: actions.UPDATE_SEND_ERRORS, |
|
|
|
type: actions.UPDATE_SEND_ERRORS, |
|
|
|
value: error, |
|
|
|
value: error, |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function clearSend () { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
type: actions.CLEAR_SEND |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function sendTx (txData) { |
|
|
|
function sendTx (txData) { |
|
|
|
log.info(`actions - sendTx: ${JSON.stringify(txData.txParams)}`) |
|
|
|
log.info(`actions - sendTx: ${JSON.stringify(txData.txParams)}`) |
|
|
|