Skip to content

Commit

Permalink
Add helper comments for legacy func
Browse files Browse the repository at this point in the history
  • Loading branch information
sieniven committed Aug 23, 2023
1 parent 896f90b commit 7dfabc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rpc/rawtransaction_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ ResVal<CTokenAmount> 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)) {
Expand Down

0 comments on commit 7dfabc5

Please sign in to comment.