mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 15:05:53 +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)
|
||||
{
|
||||
if (pAlphabet == NULL)
|
||||
pAlphabet = s_currentAlphabet;
|
||||
assert (pAlphabet != NULL);
|
||||
|
||||
if (!decode (psz, vchRet, pAlphabet))
|
||||
return false;
|
||||
if (vchRet.size() < 4)
|
||||
|
||||
@@ -71,7 +71,7 @@ public:
|
||||
|
||||
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);
|
||||
|
||||
static RippleAddress createAccountID(const std::string& strAccountID)
|
||||
|
||||
Reference in New Issue
Block a user