From 6a2185afee0abf467ecc6c539ed83f1fdf962689 Mon Sep 17 00:00:00 2001 From: pbca26 Date: Mon, 21 Aug 2017 19:57:32 +0300 Subject: [PATCH] corrected address length validation rule --- react/src/components/dashboard/sendCoin/sendCoin.js | 2 +- react/src/translate/en.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/react/src/components/dashboard/sendCoin/sendCoin.js b/react/src/components/dashboard/sendCoin/sendCoin.js index cd4e5b5..a305a46 100644 --- a/react/src/components/dashboard/sendCoin/sendCoin.js +++ b/react/src/components/dashboard/sendCoin/sendCoin.js @@ -801,7 +801,7 @@ class SendCoin extends React.Component { validateSendFormData() { let valid = true; - if (!this.state.sendTo || this.state.sendTo.length < 64) { + if (!this.state.sendTo || this.state.sendTo.length < 34) { Store.dispatch( triggerToaster( translate('SEND.SEND_TO_ADDRESS_MIN_LENGTH'), diff --git a/react/src/translate/en.js b/react/src/translate/en.js index 5550c11..87cf213 100644 --- a/react/src/translate/en.js +++ b/react/src/translate/en.js @@ -522,7 +522,7 @@ export const _lang = { 'ENTER_AN_ADDRESS': 'Enter an address', 'YOU_PICKED_OPT': 'You picked option', 'PLEASE_WAIT': 'Please wait', - 'SEND_TO_ADDRESS_MIN_LENGTH': 'Send to address must be at least 64 characters long', + 'SEND_TO_ADDRESS_MIN_LENGTH': 'Send to address must be at least 34 characters long', 'AMOUNT_POSITIVE_NUMBER': 'Amount must be a positive number', 'FEE_POSITIVE_NUMBER': 'Fee must be a positive number', 'TOTAL_AMOUNT_POSITIVE_NUMBER': 'Total amount (amount - fee) must be a positive number',