diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-22 20:06:58 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-07-29 14:29:20 +0000 |
commit | 7d9b7fee43648b01ada2696ddf905d42a0263789 (patch) | |
tree | 4839a987ecfc729f71bc2adee9100977f528ef29 /src/wallet | |
parent | Merge pull request #5635 (diff) | |
download | monero-7d9b7fee43648b01ada2696ddf905d42a0263789.tar.xz |
functional_tests: add validate_address tests
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index 9d3605d11..331f36e7f 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -4089,9 +4089,8 @@ namespace tools } } - er.code = WALLET_RPC_ERROR_CODE_WRONG_ADDRESS; - er.message = std::string("Invalid address"); - return false; + res.valid = false; + return true; } //------------------------------------------------------------------------------------------------------------------------------ bool wallet_rpc_server::on_set_daemon(const wallet_rpc::COMMAND_RPC_SET_DAEMON::request& req, wallet_rpc::COMMAND_RPC_SET_DAEMON::response& res, epee::json_rpc::error& er, const connection_context *ctx) |