diff --git a/src/Neo/SmartContract/Manifest/ContractPermissionDescriptor.cs b/src/Neo/SmartContract/Manifest/ContractPermissionDescriptor.cs index a6f0cc1807..41dc7ca816 100644 --- a/src/Neo/SmartContract/Manifest/ContractPermissionDescriptor.cs +++ b/src/Neo/SmartContract/Manifest/ContractPermissionDescriptor.cs @@ -69,9 +69,7 @@ internal ContractPermissionDescriptor(ReadOnlySpan 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()); } ///