diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-08-14 15:23:31 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-08-14 15:23:31 -0500 |
commit | dd3b5ecb98aea5440da6059abc7060e1c45c7621 (patch) | |
tree | 1212d1130f219155808d94b0697d2aa34e872fd4 /src/wallet/wallet_rpc_server.cpp | |
parent | Merge pull request #4851 (diff) | |
parent | functional_tests: add validate_address tests (diff) | |
download | monero-dd3b5ecb98aea5440da6059abc7060e1c45c7621.tar.xz |
Merge pull request #5478
7d9b7fe functional_tests: add validate_address tests (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet_rpc_server.cpp')
-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 b38c2f7c8..844ecf90c 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -4091,9 +4091,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) |