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

Improve serialization errors #87

Closed soerenbf closed 1 year ago

soerenbf commented 1 year ago

Purpose

Adds trace information for errors happening when (de)serializing using contract schemas. I added a few unit tests, mostly to test the format of the trace errors for both JsonError and ToJsonError are as expected, however they are nowhere exhaustive (If we need more, let me know).

Changes

Checklist