Commit c98b523
committed
fix(zig): handle array_value in stateValueToAnf switch
StateValue gained an array_value variant for FixedArray state fields
but sdk_contract.zig:stateValueToAnf wasn't updated, breaking the zig
integration build with:
error: switch must handle all possibilities
return switch (sv) {
note: unhandled enumeration value: 'array_value'
FixedArray state fields are flattened into per-index scalar properties
before reaching the ANF auto-state helper, so a raw array_value here
has no scalar representation. Map it to .none so the computation skips
the field instead of trapping the switch.
Verification:
- cd packages/runar-zig && zig build test -> 76/76 pass
- cd integration/zig && zig build test -> exit 0, compiles clean1 parent ba36db4 commit c98b523
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1158 | 1158 | | |
1159 | 1159 | | |
1160 | 1160 | | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
1161 | 1167 | | |
1162 | 1168 | | |
1163 | 1169 | | |
| |||
0 commit comments