We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 477b357 commit fac3a78Copy full SHA for fac3a78
src/base58.cpp
@@ -139,7 +139,7 @@ std::string EncodeBase58Check(Span<const unsigned char> input)
139
// add 4-byte hash check to the end
140
std::vector<unsigned char> vch(input.begin(), input.end());
141
uint256 hash = Hash(vch);
142
- vch.insert(vch.end(), (unsigned char*)&hash, (unsigned char*)&hash + 4);
+ vch.insert(vch.end(), hash.data(), hash.data() + 4);
143
return EncodeBase58(vch);
144
}
145
0 commit comments