X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fbase58.cpp;h=b077a0b44c0368a504ed54da7f660c4607290fcd;hb=HEAD;hp=2a6e6e778bdf29e5ec9b18f04f7592b7c74427fc;hpb=76afbdb4d790433c9a227ac505fae60942b2a7fe;p=novacoin.git diff --git a/src/base58.cpp b/src/base58.cpp index 2a6e6e7..b077a0b 100644 --- a/src/base58.cpp +++ b/src/base58.cpp @@ -14,6 +14,7 @@ // #include "base58.h" +#include "hash.h" static const std::array digits = { '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', @@ -257,7 +258,7 @@ bool DecodeBase58Check(const std::string& str, std::vector& vchRe std::string CBase58Data::ToString() const { - std::vector vch(1, nVersion); + std::vector vch{nVersion}; vch.insert(vch.end(), vchData.begin(), vchData.end()); return EncodeBase58Check(vch); }