Commit 186c7e8
committed
fix: map L1ToL2MessageBundle messages to a fixed-length Noir array
The generated L1ToL2MessageBundle.messages type is a fixed-length (1024) array,
but the bundle's messages field is a plain Fr[], so mapFieldArrayToNoir inferred
length `number` and tsc rejected it (TS2322) at the six block-root mapper call
sites. Pass MAX_L1_TO_L2_MSGS_PER_BLOCK explicitly to produce the fixed length.1 parent 4b8a585 commit 186c7e8
1 file changed
Lines changed: 4 additions & 1 deletion
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
831 | 832 | | |
832 | 833 | | |
833 | 834 | | |
834 | | - | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
835 | 838 | | |
836 | 839 | | |
837 | 840 | | |
| |||
0 commit comments