Leave opretValue null unless a 5th argument is given to avoid adding empty opreturns
This commit is contained in:
@@ -5153,7 +5153,10 @@ UniValue z_sendmany(const UniValue& params, bool fHelp, const CPubKey& mypk)
|
||||
CAmount nTotalOut = 0;
|
||||
// Optional OP_RETURN data
|
||||
CScript opret;
|
||||
UniValue opretValue = params.size() >= 4 ? params[4].get_str() : "";
|
||||
UniValue opretValue;
|
||||
if(params.size() == 5) {
|
||||
opretValue = params[4].get_str();
|
||||
}
|
||||
|
||||
bool containsSaplingOutput = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user