I’m a little confused about the following screenshot I took from the solidity docs.
Does this mean that function modifiers are externally callable by other contracts? Why else would anyone want to reference a modifier
m
with C.m
?
I’m a little confused about the following screenshot I took from the solidity docs.
m
with C.m
?
They are not externally callable. This means that if you have a base contract Ownable
in your inheritance you can use the modifier Ownable.onlyOwner
. The reason you might want to do this is that modifiers are overrideable, so if you write onlyOwner
it could be potentially overriden somewhere else in the inheritance.
You should probably never need to use this syntax.
Ah I see, that makes sense. Thanks!
Welcome @ghiliweld to the community! I believe we met back in London 2018, ENS hackathon. I tried to help you with some Aragon SDK with no luck.
Good to see you around
Hey Martín, yes we did meet in London it’s nice talking to you again! I’ve been having a lot of fun lurking for smart contract bug bounties and getting back into Solidity so I’ll probably be around often.