Skip to content

Commit

Permalink
Do SanitizeString on memo
Browse files Browse the repository at this point in the history
  • Loading branch information
levonpetrosyan93 committed Dec 23, 2023
1 parent d2ae324 commit 70fdd3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3380,7 +3380,7 @@ UniValue listsparkmints(const JSONRPCRequest& request) {
entry.push_back(Pair("nId", coin.second.nId));
entry.push_back(Pair("isUsed", coin.second.isUsed));
entry.push_back(Pair("lTagHash", coin.first.GetHex()));
entry.push_back(Pair("memo", coin.second.memo));
entry.push_back(Pair("memo", SanitizeString(coin.second.memo)));

CDataStream serialized(SER_NETWORK, PROTOCOL_VERSION);
serialized << pwallet->sparkWallet->getCoinFromMeta(coin.second);
Expand Down

0 comments on commit 70fdd3b

Please sign in to comment.