For example, we have a contract:
contract A {
modifier checkCaller() {
require(msg.sender == 0x123);
_;
}
function doSmth() checkCaller {}
}
We make child contract and override function:
contract B is A {
function doSmth() {
super.doSmth();
// ... do more
}
}
Do I need to explicitly use modifier checkCaller
in the child contract B
? As I understand super.doSmth()
will throw properly. Correct?