Skip to content

Commit

Permalink
format files
Browse files Browse the repository at this point in the history
  • Loading branch information
rjnrohit committed Oct 17, 2024
1 parent 141b961 commit 70a5cce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ public static IEnumerable<RlpStream> WrongSizeFieldsEncodedCases()
{
yield return TupleRlpStream(
//Wrong chain size
Enumerable.Range(0, 9).Select(i=> (byte) 0xFF).ToArray(),
Enumerable.Range(0, 9).Select(i => (byte)0xFF).ToArray(),
Address.Zero.Bytes,
Enumerable.Range(0, 8).Select(i=> (byte) 0xFF).ToArray(),
Enumerable.Range(0, 1).Select(i=> (byte) 0xFF).ToArray(),
Enumerable.Range(0, 32).Select(i=> (byte) 0xFF).ToArray(),
Enumerable.Range(0, 32).Select(i=> (byte) 0xFF).ToArray()
Enumerable.Range(0, 8).Select(i => (byte)0xFF).ToArray(),
Enumerable.Range(0, 1).Select(i => (byte)0xFF).ToArray(),
Enumerable.Range(0, 32).Select(i => (byte)0xFF).ToArray(),
Enumerable.Range(0, 32).Select(i => (byte)0xFF).ToArray()
);

yield return TupleRlpStream(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ bool IsValidForExecution(
ISet<Address> accessedAddresses,
[NotNullWhen(false)] out string? error)
{
UInt256 s = new (authorizationTuple.AuthoritySignature.SAsSpan, isBigEndian: true);
UInt256 s = new(authorizationTuple.AuthoritySignature.SAsSpan, isBigEndian: true);
if (authorizationTuple.Authority is null
|| s > Secp256K1Curve.HalfN)
{
Expand Down

0 comments on commit 70a5cce

Please sign in to comment.