diff --git a/src/main/java/com/esaulpaugh/headlong/rlp/Record.java b/src/main/java/com/esaulpaugh/headlong/rlp/Record.java index 7578928f..03701b7e 100644 --- a/src/main/java/com/esaulpaugh/headlong/rlp/Record.java +++ b/src/main/java/com/esaulpaugh/headlong/rlp/Record.java @@ -69,6 +69,7 @@ public static ByteBuffer encode(Signer signer, final long seq, List pairs) final ByteBuffer bb = ByteBuffer.wrap(record); RLPEncoder.insertListPrefix(recordDataLen, bb); RLPEncoder.putString(signature, bb); + bb.rewind(); return bb; }