Commit 7bc8748
fix(deploy): tolerate forge create progress noise when extracting addresses (#6)
`forge create --json` interleaves compile progress with the JSON payload on
stdout, so piping straight to `jq -r '.deployedTo'` breaks intermittently
(observed on the Stage 1b ERC1967Proxy deploy in a warm cache). Switch both
Stage 1a and Stage 1b extractions to grep the human-readable
"Deployed to: 0x…" line — stable across forge versions and cache states —
and validate the captured address before continuing so a malformed extract
can't silently propagate into ERC1967Proxy constructor args or the
`definition.json` manager patch.
Co-authored-by: Drew Stone <drewstone329@gmail.com>1 parent 896032f commit 7bc8748
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
71 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
| |||
81 | 87 | | |
82 | 88 | | |
83 | 89 | | |
84 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
85 | 93 | | |
86 | 94 | | |
87 | 95 | | |
| |||
0 commit comments