Skip to content

Commit

Permalink
Update src/Neo/SmartContract/Manifest/ContractPermissionDescriptor.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Jimmy <jinghui@wayne.edu>
  • Loading branch information
Hecate2 and Jim8y committed Sep 8, 2023
1 parent 009890b commit 2ffecee
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ internal ContractPermissionDescriptor(ReadOnlySpan<byte> span)

public static ContractPermissionDescriptor Create(StackItem item)
{
if (item == StackItem.Null)
return CreateWildcard();
return new ContractPermissionDescriptor(item.GetSpan());
return item.Equals(StackItem.Null) ? CreateWildcard() : new ContractPermissionDescriptor(item.GetSpan());
}

/// <summary>
Expand Down

0 comments on commit 2ffecee

Please sign in to comment.