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

remove constructor from aeERC20 #98

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

godzillaba
Copy link
Contributor

the empty constructor in aeERC20 can cause issues with explorer verification because the built constructor code differs from the code used by CreationCodeHelper

@cla-bot cla-bot bot added the cla-signed label Dec 18, 2024
@@ -27,11 +27,6 @@ import "./TransferAndCallToken.sol";
contract aeERC20 is ERC20PermitUpgradeable, TransferAndCallToken {
using AddressUpgradeable for address;

constructor() initializer {
Copy link
Member

@gzeoneth gzeoneth Dec 18, 2024

Choose a reason for hiding this comment

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

if this is removed, the logic contract would become initializable
while I don't think it will causes any problem in our usecase especially when self-destruct no longer delete code, it is something we should think about; in L2AtomicTokenBridgeFactory we call initialize on the logic contract (which should not be callable if it were deployed normally because of the constructor) deployed by CreationCodeHelper trick to prevent those logic from being re-inited

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants