mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix default alphabet parameter to not pass null
This commit is contained in:
@@ -158,8 +158,8 @@ bool Base58::decode (const std::string& str, std::vector<unsigned char>& vchRet)
|
|||||||
|
|
||||||
bool Base58::decodeWithCheck (const char* psz, std::vector<unsigned char>& vchRet, const char* pAlphabet)
|
bool Base58::decodeWithCheck (const char* psz, std::vector<unsigned char>& vchRet, const char* pAlphabet)
|
||||||
{
|
{
|
||||||
if (pAlphabet == NULL)
|
assert (pAlphabet != NULL);
|
||||||
pAlphabet = s_currentAlphabet;
|
|
||||||
if (!decode (psz, vchRet, pAlphabet))
|
if (!decode (psz, vchRet, pAlphabet))
|
||||||
return false;
|
return false;
|
||||||
if (vchRet.size() < 4)
|
if (vchRet.size() < 4)
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ public:
|
|||||||
|
|
||||||
std::string humanAccountID() const;
|
std::string humanAccountID() const;
|
||||||
|
|
||||||
bool setAccountID(const std::string& strAccountID, const char* pAlphabet=0);
|
bool setAccountID(const std::string& strAccountID, const char* pAlphabet=Base58::getCurrentAlphabet ());
|
||||||
void setAccountID(const uint160& hash160In);
|
void setAccountID(const uint160& hash160In);
|
||||||
|
|
||||||
static RippleAddress createAccountID(const std::string& strAccountID)
|
static RippleAddress createAccountID(const std::string& strAccountID)
|
||||||
|
|||||||
Reference in New Issue
Block a user