Concordium / concordium-contracts-common

Common functionality used by smart contracts and the host environment on the Concordium blockchain.
Mozilla Public License 2.0
10 stars 10 forks source link

Bug in enum deserialization. #62

Closed vikt0r0 closed 1 year ago

vikt0r0 commented 1 year ago

Purpose

The current implementation serializes enum variant indices using u32 instead of u16.

Changes

Change type of output.

vikt0r0 commented 1 year ago

What I previously reported does not seem to be an issue, since Vec is 0-indexed, however using u32 instead of u16 is? I changed that in the PR.