-
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
feat: add IERC7802 #123
feat: add IERC7802 #123
Conversation
|
||
/// @title SuperchainERC20 | ||
/// @notice SuperchainERC20 is a standard extension of the base ERC20 token contract that unifies ERC20 token | ||
/// bridging to make it fungible across the Superchain. This construction allows the SuperchainTokenBridge to | ||
/// burn and mint tokens. | ||
abstract contract SuperchainERC20 is ERC20, ICrosschainERC20, ISemver { | ||
abstract contract SuperchainERC20 is ERC20, ERC165, IERC7802, ISemver { |
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.
cant we make the IERC7802
include IERC165
?
/// @notice Defines the interface for crosschain ERC20 transfers. | ||
interface ICrosschainERC20 { | ||
interface IERC7802 is IERC165 { |
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 you include it here, do you need to include in the implementation contract as well?
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.
This one is for the interface to enforce it to be included when extending from it
The other one is an abstract contract that has the OZ implementation, it particularly declares supporting the IERC165
interface
One solution is to stop inheriting from ERC165
but manually add the interface support to each contract in the supportInterface
function
Closes OPT-501
Changes:
ICrosschainERC20
toIERC7802
ERC165
SuperchainTokenBridge
withERC165
just pre-pr
andjust test
succeeded