-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add hookable modifier for all external functions in core-module #5
Comments
@MerkleBoy @ccp-tezza lets discuss here |
@ccp-tezza
So in this case
Then while execution, we can check if its a entity then check its registered if not no. Note: Make sure entities are hookable only by owners. |
Solution : Use System Hooks instead of a modifier without a entity. |
Using MUD System Hooks is an interesting idea that is worth exploring; on the other side I did a little bit of research and it turns out modifier overloading is not something that is allowed in Solidity: ethereum/solidity#12332 It's not the first time this week I end up finding that Solidity is lacking when it comes to overloading stuff, so we need to keep that in mind. A bit of a bummer, really |
Issue
hookable()
modifier without entity ?Suggested Solution
hookable()
modifier.hookable()
modifier to support multiple entitiesDiscussions
The text was updated successfully, but these errors were encountered: