-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate manifest after compilation #658
Conversation
Should update to Neo v3.0.0-CI01295. Dependency is too old. |
Test Fail
nccs compile:
manifest: |
@superboyiii If I change the UT for your example, it throw an exception :S |
@superboyiii could you check it again? |
Ping @superboyiii |
I'll test again. |
@shargon Still Failed
You could try it on local. Obviously there're two
But it's checked when deployed by neo-cli. |
@superboyiii Thanks for your feedback, please try it again :) |
It works now. @shargon
|
if (methodsExported.Any(u => u.Name == method.Name && u.Parameters.Length == method.Parameters.Length)) | ||
throw new CompilationException(symbol, DiagnosticId.MethodNameConflict, $"Duplicate method key: {method.Name},{method.Parameters.Length}."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erikzhang please take a look again, the method key is with arguments
https://github.com/neo-project/neo/blob/02cae386af6da48d46d02a373e2cf0116e3a8622/src/neo/SmartContract/Manifest/ContractAbi.cs#L77
Close #657