Commit 93c5bd3
fix(audit): tighten Deploy.s.sol owner-transfer logic
- Simplify ProxyAdmin ownership transfer: rely on proxyAdmin.owner()
(set to broadcaster in constructor) instead of the misleading
address(this) check.
- Guard PROXY_ADMIN_OWNER=0 explicitly, matching the OWNER=0 require.
- Drop dead `owner != address(0)` clause on the factory.setOwner branch
(already enforced by the OWNER=0 require above).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8b52dfd commit 93c5bd3
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
72 | | - | |
| 75 | + | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
| |||
0 commit comments