Merge pull request #4968
219372f script: Fix reference into empty vector run time exception (ENikS)
This commit is contained in:
@@ -40,7 +40,7 @@ BOOST_AUTO_TEST_CASE(base58_EncodeBase58)
|
||||
std::vector<unsigned char> sourcedata = ParseHex(test[0].get_str());
|
||||
std::string base58string = test[1].get_str();
|
||||
BOOST_CHECK_MESSAGE(
|
||||
EncodeBase58(&sourcedata[0], &sourcedata[sourcedata.size()]) == base58string,
|
||||
EncodeBase58(begin_ptr(sourcedata), end_ptr(sourcedata)) == base58string,
|
||||
strTest);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user