-
Notifications
You must be signed in to change notification settings - Fork 1
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
uses arb test mint token as example for updated contracts #4
base: main
Are you sure you want to change the base?
Conversation
bytes memory data | ||
) external returns (bool success); | ||
|
||
event Transfer(address indexed from, address indexed to, uint256 value, bytes data); |
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.
The name is duplicated in the Transfer event of IERC20Upgradeable, is that OK?
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.
If the interface is declared duplicate, I think you need to remove one or the other.
contracts/Dev.sol
Outdated
contract aeERC20 is ERC20PermitUpgradeable, TransferAndCallToken, ReentrancyGuardUpgradeable { | ||
using AddressUpgradeable for address; | ||
|
||
constructor() public initializer { |
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 you can delete this constructor.
} | ||
} | ||
|
||
contract ArbDEVTokenL1 is aeERC20, ICustomToken { |
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.
Do you need not to create this contract in upgradable?
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 this contract should be upgradeable. Because Arbitrum is still unstable, and the requirements may change.
function mint() external { | ||
_mint(msg.sender, 50000000); | ||
} |
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 don't think this function is needed. Maybe for testing or something?
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.
If such an interface is required, we can upgrade this implementation contract later. Therefore, we can remove functions that we think are unnecessary.
No description provided.