Commit b98307b
fix(evm-wallet-experiment): use node -e for COMMS_PARAMS and ENTROPY JSON construction
Replace ad-hoc shell string interpolation for COMMS_PARAMS (relay
address, allowedWsHosts) and ENTROPY with node -e + env vars. The
old pattern was vulnerable to JSON injection if RELAY_ADDR contained
double-quote characters, and was inconsistent with the rest of the
scripts' JSON construction discipline.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 19942b9 commit b98307b
2 files changed
Lines changed: 24 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
252 | 247 | | |
253 | 248 | | |
254 | 249 | | |
| |||
415 | 410 | | |
416 | 411 | | |
417 | 412 | | |
418 | | - | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
419 | 417 | | |
420 | 418 | | |
421 | 419 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
271 | 266 | | |
272 | 267 | | |
273 | 268 | | |
| |||
0 commit comments