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

Produce proper error for field attributes when deriving Deserial #93

Closed limemloh closed 1 year ago

limemloh commented 1 year ago

Purpose

Fix error when users provide an invalid field attribute.

Currently, when deriving Deserial or DeserialWithState for a struct with an invalid field attribute such #[concordium(size_length = "2")], where this is expected to be a number literal.

Expected: image

Actual: image