I want to do the following:
contract Base {
bool public active;
modifier canSetMetadata() {
require(active == false);
_;
}
}
contract BaseWithMetadataControl is Base {
address public metadataControl;
modifier canSetMetadata() {
if(msg.sender != metadataControl) {
super.canSetMetadata();
}
_;
}
}
So the child class should call the parent's class modifier. It doesn't seem to be possible but I don't want to duplicate the modifier code because it's likely to change...