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(dec-2020-audit): [L05] Event missing emit keyword #2303

Merged
merged 2 commits into from
Dec 17, 2020

Conversation

chrismaree
Copy link
Member

@chrismaree chrismaree commented Dec 16, 2020

Problem:
In the createPerpetual function of the PerpetualCreator contract, the CreatedConfigStore event is emitted without the emit keyword.

Since Solidity v0.4.21, the emit keyword has been recommended to distinguish events from other function calls.

Solution in this PR
The PerpetualCreator is updated to follow the correct specification by using the emit keyword.

Signed-off-by: Christopher Maree <christopher.maree@gmail.com>
Signed-off-by: Christopher Maree <christopher.maree@gmail.com>
@chrismaree chrismaree added the dec-2020-audit Fixes for the perpetual, optimistic oracle, ancillary DVM data and financial product library audit. label Dec 16, 2020
Copy link
Member

@nicholaspai nicholaspai left a comment

Choose a reason for hiding this comment

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

I didn't even realize that you could NOT use the emit keyword. LGTM!

@chrismaree chrismaree merged commit 0796d56 into master Dec 17, 2020
@chrismaree chrismaree deleted the chrismaree/audit-emit-keyword branch December 17, 2020 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dec-2020-audit Fixes for the perpetual, optimistic oracle, ancillary DVM data and financial product library audit.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants