Fix subscript[0] in base58.cpp

This commit is contained in:
Jeremy Rubin
2017-02-19 13:41:13 -05:00
committed by Jack Grigg
parent b37b4b2fa3
commit 1b34996b21
2 changed files with 8 additions and 8 deletions

View File

@@ -194,8 +194,8 @@ public:
K GetKey() {
K ret;
if (vchData.size() == Size) {
//if base58 encoded data not holds a ext key, return a !IsValid() key
ret.Decode(&vchData[0]);
// If base58 encoded data does not hold an ext key, return a !IsValid() key
ret.Decode(vchData.data());
}
return ret;
}