Skip to content

Commit

Permalink
rewind ByteBuffer before returning
Browse files Browse the repository at this point in the history
  • Loading branch information
esaulpaugh committed Jul 8, 2024
1 parent 9aa2dba commit d4dfc5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/esaulpaugh/headlong/rlp/Record.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public static ByteBuffer encode(Signer signer, final long seq, List<KVP> pairs)
final ByteBuffer bb = ByteBuffer.wrap(record);
RLPEncoder.insertListPrefix(recordDataLen, bb);
RLPEncoder.putString(signature, bb);
bb.rewind();
return bb;
}

Expand Down

0 comments on commit d4dfc5f

Please sign in to comment.