Skip to content

Commit

Permalink
Update src/Neo/SmartContract/Manifest/ContractManifest.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Schuchardt <cschuchardt88@gmail.com>
  • Loading branch information
chenzhitong and cschuchardt88 authored Jul 5, 2024
1 parent dd8ce83 commit bc2726e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Neo/SmartContract/Manifest/ContractManifest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ public static ContractManifest FromJson(JObject json)
ContractManifest manifest = new()
{
Name = json["name"]!.GetString(),
Groups = ((JArray)json["groups"])!.Select(u => ContractGroup.FromJson((JObject)u)).ToArray(),
SupportedStandards = ((JArray)json["supportedstandards"])!.Select(u => u.GetString()).ToArray(),
Groups = ((JArray)json["groups"])?.Select(u => ContractGroup.FromJson((JObject)u)).ToArray() ?? [],
SupportedStandards = ((JArray)json["supportedstandards"])?.Select(u => u.GetString()).ToArray() ?? [],
Abi = ContractAbi.FromJson((JObject)json["abi"]),
Permissions = ((JArray)json["permissions"])!.Select(u => ContractPermission.FromJson((JObject)u)).ToArray(),
Trusts = WildcardContainer<ContractPermissionDescriptor>.FromJson(json["trusts"], u => ContractPermissionDescriptor.FromJson((JString)u)),
Expand Down

0 comments on commit bc2726e

Please sign in to comment.