Skip to content

Commit 058101f

Browse files
committed
[GUI][Trivial] Save cold-staking address in contacts
Cold-staking contacts are only saved when sending a delegation (with label for staker address), but they cannot be added directly in the addresses widget. Remove the check preventing this.
1 parent 00fa7da commit 058101f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/pivx/addresseswidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void AddressesWidget::onStoreContactClicked()
189189
bool isStakingAddress = false;
190190
auto pivAdd = Standard::DecodeDestination(address.toUtf8().constData(), isStakingAddress);
191191

192-
if (!Standard::IsValidDestination(pivAdd) || isStakingAddress) {
192+
if (!Standard::IsValidDestination(pivAdd)) {
193193
setCssEditLine(ui->lineEditAddress, false, true);
194194
inform(tr("Invalid Contact Address"));
195195
return;

0 commit comments

Comments
 (0)