Skip to content

Commit

Permalink
7702 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ak88 committed Oct 17, 2024
1 parent 937ac55 commit 0c3dc33
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ bool IsValidForExecution(
ISet<Address> accessedAddresses,
[NotNullWhen(false)] out string? error)
{
if (authorizationTuple.Authority is null)
UInt256 s = new (authorizationTuple.AuthoritySignature.SAsSpan, isBigEndian: true);
if (authorizationTuple.Authority is null
|| s > Secp256K1Curve.HalfN)
{
error = "Bad signature.";
return false;
Expand Down

0 comments on commit 0c3dc33

Please sign in to comment.