Skip to content

Commit

Permalink
validateAddress for WalletService fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aivve committed Jul 26, 2018
1 parent 063d001 commit 080090d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/PaymentGate/WalletService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,9 @@ std::error_code WalletService::validateAddress(const std::string& address, bool&
spendPublicKey = Common::podToHex(acc.spendPublicKey);
viewPublicKey = Common::podToHex(acc.viewPublicKey);
}
else {
isvalid = false;
}
}
catch (std::system_error& x) {
logger(Logging::WARNING, Logging::BRIGHT_YELLOW) << "Error while validating address: " << x.what();
Expand Down

0 comments on commit 080090d

Please sign in to comment.