Skip to content

Commit

Permalink
Deterministic methods order for native contracts (#2241)
Browse files Browse the repository at this point in the history
Co-authored-by: Shargon <shargon@gmail.com>
  • Loading branch information
erikzhang and shargon authored Jan 17, 2021
1 parent 39c1890 commit df7070d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/neo/SmartContract/Native/NativeContract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ protected NativeContract()
{
Name = Name,
Groups = System.Array.Empty<ContractGroup>(),
SupportedStandards = new string[0],
SupportedStandards = System.Array.Empty<string>(),
Abi = new ContractAbi()
{
Events = System.Array.Empty<ContractEventDescriptor>(),
Methods = descriptors.ToArray()
Methods = descriptors.OrderBy(p => p.Name).ThenBy(p => p.Parameters.Length).ToArray()
},
Permissions = new[] { ContractPermission.DefaultPermission },
Trusts = WildcardContainer<UInt160>.Create(),
Expand Down

0 comments on commit df7070d

Please sign in to comment.