Commit 5d6a825
fix: add on-chain verification and salt nonce increment for Safe deployment (#4)
- Add on-chain deployment verification before attempting to deploy a Safe
- Automatically sync local storage with blockchain state to prevent mismatches
- Implement automatic salt nonce increment when creating Safes with duplicate configs
- Prevent address collisions by checking up to 100 salt nonce variations
- Store salt nonce in predictedConfig for deterministic address generation
This resolves issues where:
1. Users couldn't deploy Safes that local storage incorrectly marked as deployed
2. Users couldn't create multiple Safes with identical owner/threshold configurations
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent 3184704 commit 5d6a825
2 files changed
+65
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
171 | 205 | | |
172 | 206 | | |
173 | 207 | | |
| |||
180 | 214 | | |
181 | 215 | | |
182 | 216 | | |
| 217 | + | |
183 | 218 | | |
184 | 219 | | |
185 | 220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | 75 | | |
81 | 76 | | |
82 | 77 | | |
83 | 78 | | |
84 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
85 | 106 | | |
86 | 107 | | |
87 | 108 | | |
| |||
90 | 111 | | |
91 | 112 | | |
92 | 113 | | |
93 | | - | |
94 | 114 | | |
95 | 115 | | |
96 | 116 | | |
| |||
0 commit comments