From 7dfabc55242c8b4214c399482310ecf8fd0e0a87 Mon Sep 17 00:00:00 2001 From: Niven Date: Wed, 23 Aug 2023 17:24:35 +0800 Subject: [PATCH] Add helper comments for legacy func --- src/rpc/rawtransaction_util.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rpc/rawtransaction_util.cpp b/src/rpc/rawtransaction_util.cpp index 0d03b0ccbd..505c32544b 100644 --- a/src/rpc/rawtransaction_util.cpp +++ b/src/rpc/rawtransaction_util.cpp @@ -67,7 +67,9 @@ ResVal GuessTokenAmount(interfaces::Chain const & chain, std::stri } -// decodes either base58/bech32 address, or a hex format +// Decodes either base58/bech32 address, or a hex format. Legacy function, should +// use DecodeScript(DecodeDestination(str)) to ensure proper decoding of address +// to script to include erc55 address support. CScript DecodeScript(std::string const& str) { if (IsHex(str)) {