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.
In OpenBrush, the equivalent of the
_
keyword in Solidity is thebody
function. OpenBrush executes code before or after a modifier by calling thebody
function and passing aninstance
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.