Commit ad90ba1
committed
fix: verify checkpoint headers in getEpochProofPublicInputs (A-1373)
getEpochProofPublicInputs sources the fee recipient/value from the supplied
checkpoint headers but never validated that they hash to the stored headers, so
a mismatch only reverted on the on-chain submit path instead of when an
off-chain caller assembles the public inputs. Call verifyHeaders in the getter
as well, and import ProposedHeaderLib in Rollup.t.sol so the test that exercises
this path compiles.1 parent d76fe1b commit ad90ba1
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
186 | 191 | | |
187 | 192 | | |
188 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments