From fb3eb56c8f8aa350d816a11aecd7683f0ebfcab1 Mon Sep 17 00:00:00 2001 From: Duke Date: Tue, 20 May 2025 12:29:56 -0400 Subject: [PATCH] Begin supporting utf8: in z_sendmany opreturn --- src/wallet/rpcwallet.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 0193f9fd2..54a5310dd 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -5156,6 +5156,11 @@ UniValue z_sendmany(const UniValue& params, bool fHelp, const CPubKey& mypk) UniValue opretValue; if(params.size() == 5) { opretValue = params[4].get_str(); + + if(opretValue.get_str().substr(0,5) == "utf8:") { + // TODO: 1) remove the first 5 chars + // 2) convert remaining text to hex and store in opretValue + } } bool containsSaplingOutput = false;