Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/Nethermind/Nethermind.Serialization.Rlp/Rlp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,7 @@ public static Rlp Encode<T>(T item, RlpBehaviors behaviors = RlpBehaviors.None)
{
if (item is Rlp rlp)
{
RlpStream stream = new(LengthOfSequence(rlp.Length));
return new(stream.Data.ToArray());
return rlp;
}
Comment thread
benaadams marked this conversation as resolved.

IRlpStreamDecoder<T>? rlpStreamDecoder = GetStreamDecoder<T>();
Expand Down
Loading