Created
May 24, 2023 09:06
-
-
Save TehilaFavourite/eb7cb5ad642ab93b0c70a92a0f6d5f17 to your computer and use it in GitHub Desktop.
This file contains 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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.6.0 <0.9.0; | |
contract Base1 { | |
modifier foo() virtual { | |
_; | |
} | |
} | |
contract Base2 { | |
modifier foo() virtual { | |
_; | |
} | |
} | |
contract Inherited is Base1, Base2 { | |
modifier foo() override(Base1, Base2) { | |
_; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment