-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate manifest after compilation (#658)
* Validate manifest after compilation * update nuget * Change UT * Fix * Improve message * Reduce checks * Remove manifest checks too * Remove const * Rename * Check method name conflict * Improve exception message * Fix method key https://github.com/neo-project/neo/blob/02cae386af6da48d46d02a373e2cf0116e3a8622/src/neo/SmartContract/Manifest/ContractAbi.cs#L77 Co-authored-by: Erik Zhang <[email protected]>
- Loading branch information
Showing
4 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
tests/Neo.Compiler.CSharp.UnitTests/TestClasses/Contract_DuplicateNames.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
using System.Numerics; | ||
using System.ComponentModel; | ||
|
||
namespace Neo.Compiler.CSharp.UnitTests.TestClasses | ||
{ | ||
public class Contract_DuplicateNames : SmartContract.Framework.SmartContract | ||
{ | ||
[DisplayName("Notify")] | ||
public static event Action<BigInteger> Notice; | ||
|
||
[DisplayName("Notify")] | ||
public static event Action<BigInteger> AA; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters