Created
February 1, 2023 17:08
-
-
Save bartubozkurt/d21553fe9170ae2694b52dcbe48b22c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Bad */ | |
contract Bad{} | |
contract Tom is Bad{ | |
constructor() public Bad(){} | |
} | |
/* Better */ | |
contract Good{} | |
contract Tom is Good{ | |
constructor() public {} // remove the constructor call. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment