aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2022-04-06 00:15:40 -0400
committerluigi1111 <luigi1111w@gmail.com>2022-04-06 00:15:40 -0400
commit9a124f681119855949f6406ecd69c2ad91da9770 (patch)
tree36877488ed88f6c6e875515029018bb9f017fa28
parentMerge pull request #8212 (diff)
parentwallet_rpc_server: fix make_integrated_address with no payment id (diff)
downloadmonero-9a124f681119855949f6406ecd69c2ad91da9770.tar.xz
Merge pull request #8213
7dcfccb wallet_rpc_server: fix make_integrated_address with no payment id (moneromooo-monero)
-rw-r--r--src/wallet/wallet_rpc_server.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index c3c0b6fc5..c99fcaca7 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -1760,12 +1760,6 @@ namespace tools
er.message = "Already integrated address";
return false;
}
- if (req.payment_id.empty())
- {
- er.code = WALLET_RPC_ERROR_CODE_WRONG_PAYMENT_ID;
- er.message = "Payment ID shouldn't be left unspecified";
- return false;
- }
res.integrated_address = get_account_integrated_address_as_str(m_wallet->nettype(), info.address, payment_id);
}
res.payment_id = epee::string_tools::pod_to_hex(payment_id);