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

Adding the emit keyword #5

Open
Falilah opened this issue Feb 6, 2022 · 0 comments
Open

Adding the emit keyword #5

Falilah opened this issue Feb 6, 2022 · 0 comments

Comments

@Falilah
Copy link

Falilah commented Feb 6, 2022

log an event without an emit keyword has been deprecated and doesn't work in new version of solidity.
Yes. emit didn't exist in old versions of Solidity. Then it was added, and now it is mandatory without it compiler will throw an error.
It's advise to update the repo to the new syntax since a lot of people will be using the new version of solidity to write their code

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

No branches or pull requests

2 participants
@Falilah and others