Brushfam / openbrush-contracts

https://openbrush.io
MIT License
25 stars 10 forks source link

Move `modifier` macro on language level #164

Open Artemka374 opened 1 year ago

Artemka374 commented 1 year ago

In OpenBrush, the equivalent of the _ keyword in Solidity is the body function. OpenBrush executes code before or after a modifier by calling the body function and passing an instance as a parameter. However, it is essential to note that this feature is currently exclusive to OpenBrush. Consequently, other ink! developers will not have access to this functionality unless they also use the OpenBrush library.