WASM/Parser: refine MKField with a vector invariant
Context
Following !5965 (merged), we can refine the MKField state to only take a vector field on the type level. This has two good properties:
- it removes two
assert falsefor impossible cases in the parser, and the invariant is now in the type itself; - it avoids writing two impossible encodings
Also removes section_tag from the module continuation: it was redundant with field_type.
Manually testing the MR
make test-webassembly
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Pierrick Couderc