Is it planned to implement custom python style decorators?
A very simple use case I can think of would be to implement something like that:
from boa3.builtin import CreateNewEvent, public
def onlyOwner():
# do owner check and abort if false
pass
@onlyOwner
@public
def withdraw() -> bool:
pass
I know it's just sugar coating and functional everything can be done without decorators, I am just curious, and I think it might help with the readability of contracts.
I don't have a solution ready, but I could probably help if someone would be able to guide me a little.
Is it planned to implement custom python style decorators?
A very simple use case I can think of would be to implement something like that:
I know it's just sugar coating and functional everything can be done without decorators, I am just curious, and I think it might help with the readability of contracts.
I don't have a solution ready, but I could probably help if someone would be able to guide me a little.