Skip to content
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

nccs compiles contract that won't deploy #657

Closed
devhawk opened this issue Jun 24, 2021 · 0 comments · Fixed by #658
Closed

nccs compiles contract that won't deploy #657

devhawk opened this issue Jun 24, 2021 · 0 comments · Fixed by #658

Comments

@devhawk
Copy link
Contributor

devhawk commented Jun 24, 2021

If you have multiple events with colliding DisplayName, nccs doesn't report and error or warning, but the contract can't be deployed.

Example:

public delegate void OnSomethingDelegate(ByteString data);
public delegate void OnSomethingElseDelegate(ByteString data);

[DisplayName("OnSomething")]
public static event OnSomethingDelegate Something;

// deploy fails because this DisplayName collides with the DisplayName attached Something event
[DisplayName("OnSomething")] 
public static event OnSomethingElseDelegate SomethingElse;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant