Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
deffrian committed Dec 10, 2024
1 parent b0e5339 commit 0b8adf4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ public class OptimismLegacyTxDecoder : LegacyTxDecoder<Transaction>
protected override Signature? DecodeSignature(ulong v, ReadOnlySpan<byte> rBytes, ReadOnlySpan<byte> sBytes, Signature? fallbackSignature = null,
RlpBehaviors rlpBehaviors = RlpBehaviors.None)
{
return base.DecodeSignature(v, rBytes, sBytes, null, rlpBehaviors | RlpBehaviors.AllowUnsigned);
if (v == 0 && rBytes.IsEmpty && sBytes.IsEmpty)
{
return null;
}
return base.DecodeSignature(v, rBytes, sBytes, fallbackSignature, rlpBehaviors);
}
}

Expand Down

0 comments on commit 0b8adf4

Please sign in to comment.