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

Fix: create event from Notify #846

Closed
wants to merge 4 commits into from

Conversation

Jim8y
Copy link
Contributor

@Jim8y Jim8y commented Dec 24, 2023

Alternative to #845

This pr will create event to manifest if user calls Runtime.Notify

@Jim8y
Copy link
Contributor Author

Jim8y commented Dec 24, 2023

@shargon @roman-khimov @cschuchardt88 @vncoelho @superboyiii which one you think is better? Ban Notify or create event for notify?

@cschuchardt88
Copy link
Member

Create Event, But do think the name should be changed to Runtime.CreateEvent

src/Neo.Compiler.CSharp/CompilationContext.cs Outdated Show resolved Hide resolved
EmitCall(convert);
// process events from calling Runtime.Notify
if (symbol.ToString().Contains("Services.Runtime.Notify"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

StartWith or Equals?

src/Neo.Compiler.CSharp/AbiEvent.cs Outdated Show resolved Hide resolved

namespace Neo.Compiler
{
class AbiEvent
public class AbiEvent
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

internal?

@Jim8y
Copy link
Contributor Author

Jim8y commented Dec 26, 2023

As is confirmed with Erik, will ban Notify directly. Close this one.

@Jim8y Jim8y closed this Dec 26, 2023
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 this pull request may close these issues.

3 participants