We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc15afd commit 29e568cCopy full SHA for 29e568c
src/qml/models/sendrecipient.cpp
@@ -112,7 +112,13 @@ void SendRecipient::clear()
112
void SendRecipient::validateAddress()
113
{
114
if (!m_address.isEmpty() && !IsValidDestinationString(m_address.toStdString())) {
115
- setAddressError(tr("Invalid address"));
+ if (IsValidDestinationString(m_address.toStdString(), *CChainParams::Main())) {
116
+ setAddressError(tr("Address is valid for mainnet, not the current network"));
117
+ } else if (IsValidDestinationString(m_address.toStdString(), *CChainParams::TestNet())) {
118
+ setAddressError(tr("Address is valid for testnet, not the current network"));
119
+ } else {
120
+ setAddressError(tr("Invalid address format"));
121
+ }
122
} else {
123
setAddressError("");
124
}
0 commit comments