Skip to content

Instantly share code, notes, and snippets.

@TehilaFavourite
Created May 24, 2023 09:06
Show Gist options
  • Save TehilaFavourite/eb7cb5ad642ab93b0c70a92a0f6d5f17 to your computer and use it in GitHub Desktop.
Save TehilaFavourite/eb7cb5ad642ab93b0c70a92a0f6d5f17 to your computer and use it in GitHub Desktop.
// 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