Skip to content

Commit 5dc1097

Browse files
committed
fix readme
1 parent a8c516a commit 5dc1097

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ contracts
8383
│ └── ASBT — "A minimal implementation of an SBT"
8484
├── utils
8585
│ ├── ABlockGuard — "Protect against flashloans"
86+
│ ├── ADeployerGuard — "Prevent proxy initialization frontrunning"
8687
│ └── Globals — "Some commonly used constants"
8788
├── presets — "Presets for the library contracts"
8889
├── interfaces — "Interfaces for the library contracts"

contracts/utils/ADeployerGuard.sol

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,17 @@ pragma solidity ^0.8.21;
1313
* ## Usage example:
1414
*
1515
* ```
16-
* contract ProtectedImpl is ADeployerGuard {
16+
* contract ProtectedERC20 is ADeployerGuard, ERC20 {
1717
* constructor() ADeployerGuard(msg.sender) {}
1818
*
19-
* function __ERC20_init(
19+
* function __ProtectedERC20_init(
2020
* string memory name_,
2121
* string memory symbol_,
2222
* ) external initializer onlyDeployer {
2323
* __ERC20_init(name_, symbol_);
2424
* }
25+
*
26+
* ...
2527
* }
2628
* ```
2729
*/

0 commit comments

Comments
 (0)