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
This pull request introduces new top-level constants `SafeStorage`
library to centralize and standardize the management of storage slot
constants across multiple contracts.
Why:
To prevent copy-paste, examples would be:
- Our own `HandlerContext` contract changed in the PR
- [guardrail
contract](https://github.com/safe-research/guardrail/blob/13d978060fc245951cf4d0ae02c0110c9e7d8c1f/src/Guardrail.sol#L27)
This change reduces gas costs by inlining constants in assembly where
they previously were not.
---------
Co-authored-by: Nicholas Rodrigues Lordello <nick@safe.global>
0 commit comments