|
|
|
@ -29,9 +29,9 @@ export default class SendToRow extends Component { |
|
|
|
|
t: PropTypes.func, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
handleToChange (to, nickname = '', toError, toWarning) { |
|
|
|
|
handleToChange (to, nickname = '', toError, toWarning, network) { |
|
|
|
|
const { hasHexData, updateSendTo, updateSendToError, updateGas, tokens, selectedToken, updateSendToWarning } = this.props |
|
|
|
|
const toErrorObject = getToErrorObject(to, toError, hasHexData) |
|
|
|
|
const toErrorObject = getToErrorObject(to, toError, hasHexData, tokens, selectedToken, network) |
|
|
|
|
const toWarningObject = getToWarningObject(to, toWarning, tokens, selectedToken) |
|
|
|
|
updateSendTo(to, nickname) |
|
|
|
|
updateSendToError(toErrorObject) |
|
|
|
@ -69,7 +69,7 @@ export default class SendToRow extends Component { |
|
|
|
|
inError={inError} |
|
|
|
|
name={'address'} |
|
|
|
|
network={network} |
|
|
|
|
onChange={({ toAddress, nickname, toError, toWarning }) => this.handleToChange(toAddress, nickname, toError, toWarning)} |
|
|
|
|
onChange={({ toAddress, nickname, toError, toWarning }) => this.handleToChange(toAddress, nickname, toError, toWarning, this.props.network)} |
|
|
|
|
openDropdown={() => openToDropdown()} |
|
|
|
|
placeholder={this.context.t('recipientAddress')} |
|
|
|
|
to={to} |
|
|
|
|