Commit 98442ed
fix: preserve case in watched contract matching
Stacks contract identifiers are case-sensitive — two contracts can share
the same name with different address casing. Case-insensitive normalization
was unsafe and could cause incorrect contract matches.
- Remove .toLowerCase() from normalizeWatchedContracts and contractMatches
- Whitespace trimming of STACKFLOW_CONTRACTS entries is preserved
- Update test to use correct-case identifier (with padding to exercise trim)
- Correct README to reflect case-sensitive matching
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent b8aeb10 commit 98442ed
File tree
3 files changed
+4
-5
lines changed- server/src
- tests
3 files changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
| 244 | + | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | | - | |
| 257 | + | |
259 | 258 | | |
260 | 259 | | |
261 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
0 commit comments