Skip to content

Commit

Permalink
Optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Nov 7, 2023
1 parent e04328f commit da5a4cd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ internal ContractPermissionDescriptor(ReadOnlySpan<byte> span)
{
switch (span.Length)
{
case 0:
// wildcard logic
break;
case UInt160.Length:
Hash = new UInt160(span);
break;
case 33:
Group = ECPoint.DecodePoint(span, ECCurve.Secp256r1);
break;
case 0:
// wildcard logic
break;
default:
throw new ArgumentException(null, nameof(span));
}
Expand Down

0 comments on commit da5a4cd

Please sign in to comment.