mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge fd25d3493d into merged_master (Bitcoin PR bitcoin/bitcoin#24319)
This commit is contained in:
commit
f9aca0e104
2 changed files with 1 additions and 2 deletions
|
|
@ -93,7 +93,7 @@ std::string FormatScript(const CScript& script)
|
|||
ret += strprintf("0x%x ", HexStr(std::vector<uint8_t>(it2, script.end())));
|
||||
break;
|
||||
}
|
||||
return ret.substr(0, ret.size() - 1);
|
||||
return ret.substr(0, ret.empty() ? ret.npos : ret.size() - 1);
|
||||
}
|
||||
|
||||
const std::map<unsigned char, std::string> mapSigHashTypes = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue