You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modifiers code is copied in all instances where it's used, increasing bytecode size. By doing a refractor to the internal function, one can reduce bytecode size significantly at the cost of one JUMP. Consider doing this only if you are constrained by bytecode size. https://0xmacro.com/blog/solidity-gas-optimizations-cheat-sheet/
The text was updated successfully, but these errors were encountered:
modifier onlyArbitrator() {
_checkOwner();
_;
}
function _checkOwner() internal view virtual {
require(msg.sender == address(arbitrator), "Can only be called by the arbitrator.");
}
Modifiers code is copied in all instances where it's used, increasing bytecode size. By doing a refractor to the internal function, one can reduce bytecode size significantly at the cost of one JUMP. Consider doing this only if you are constrained by bytecode size.
https://0xmacro.com/blog/solidity-gas-optimizations-cheat-sheet/
The text was updated successfully, but these errors were encountered: