Skip to content

Commit

Permalink
link to Solady Ownable
Browse files Browse the repository at this point in the history
  • Loading branch information
devdacian committed Jan 23, 2025
1 parent 318891c commit f0a1b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ if(ethBal != 0)
```

### #12 Use Solady `Ownable` Instead of OpenZeppelin: EFFECTIVE 0.03% -> 0.10% CHEAPER ###
Using Solady `Ownable` instead of OpenZeppelin resulted in cheaper `onlyOwner` modifier execution by 0.03% with optimizer enabled and 0.10% with optimizer disabled:
Using Solady [`Ownable`](https://github.com/Vectorized/solady/blob/main/src/auth/Ownable.sol) instead of OpenZeppelin resulted in cheaper `onlyOwner` modifier execution by 0.03% with optimizer enabled and 0.10% with optimizer disabled:
```solidity
- import {Ownable} from "@openzeppelin/access/Ownable.sol";
+ import {Ownable} from "@solady/auth/Ownable.sol";
Expand Down

0 comments on commit f0a1b65

Please sign in to comment.