diff --git a/src/key_io.cpp b/src/key_io.cpp index 56129699fc..007e895577 100644 --- a/src/key_io.cpp +++ b/src/key_io.cpp @@ -94,7 +94,7 @@ CTxDestination DecodeDestination(const std::string& str, const CChainParams& par const std::vector& script_prefix2 = params.Base58Prefix(CChainParams::SCRIPT_ADDRESS2); if (data.size() == hash.size() + script_prefix2.size() && std::equal(script_prefix2.begin(), script_prefix2.end(), data.begin())) { std::copy(data.begin() + script_prefix2.size(), data.end(), hash.begin()); - return CScriptID(hash); + return ScriptHash(hash); } } data.clear();