Pausable
can be more gas efficient using a similar mechanism as in the ReentrancyGuard
#4650
Labels
breaking change
Changes that break backwards compatibility of the public API.
I noticed that the
Pausable
contract can be optimized for gas usage by adopting a similar mechanism used in theReentrancyGuard
contract.馃捇 Environment
OpenZeppelin Contracts 4.9.3
馃摑 Details
The
ReentrancyGuard
contract usesuint256
constants to avoid the extra gas costs associated with boolean operations. This mechanism can be applied to thePausable
contract to make it more gas-efficient.馃敘 Code to reproduce bug
The text was updated successfully, but these errors were encountered: