Skip to content

Commit

Permalink
Fix rlp encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
fractasy committed Sep 18, 2024
1 parent cee6a59 commit d9a8762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/rlp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ inline bool encodeHexData(string &data, const string &hex)
string edata;

bool res = encodeHexValue(edata, hex);
if (edata.length() != 1 || edata[0] >= 0x80) {
if (edata.length() != 1 || uint8_t(edata[0]) >= 0x80) {
encodeLen(data, len);
}
data += edata;
Expand Down

0 comments on commit d9a8762

Please sign in to comment.