-
Notifications
You must be signed in to change notification settings - Fork 778
Fix naming in DexTwo according to Solidity naming conventions #619
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
base: master
Are you sure you want to change the base?
Conversation
GianfrancoBazzani
left a comment
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.
Ok for me!
| contract DexTwo is Ownable { | ||
| address public token1; | ||
| address public token2; | ||
| constructor() {} |
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.
@GianfrancoBazzani Isn't the point of this preventing the Ownable constructor from running?
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.
I think no.
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.
I just found out that there is no way to prevent the parent contract's constructor from running in Solidity, which is weird. So, my bad.
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.
Well, because of inheritance, the compiler includes all the parent constructors in the deploy bytecode.
No description provided.