Concordium / concordium-client

A command line client to interact with the concordium-node
Apache License 2.0
8 stars 6 forks source link

module inspect and contract show fail parsing modules with unknown custom sections #284

Closed abizjak closed 10 months ago

abizjak commented 10 months ago

Bug Description

If a module has a custom section that is not know to Concordium, then module inspect will fail parsing the module to extract information. In particular this happens when the custom section appears before the custom section for the schema.

Steps to Reproduce

  1. Construct a module with an arbitrary custom section
  2. Append a schema custom section.
  3. Deploy module.
  4. Attempt module inspect.

Expected Result

The additional custom section is ignored.

Actual Result

The schema is not correctly extracted.

Versions