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

Derive Serial and Deserial for types with type parameters #88

Closed limemloh closed 1 year ago

limemloh commented 1 year ago

Purpose

Related to https://github.com/Concordium/concordium-rust-smart-contracts/issues/283. Tests are implemented in https://github.com/Concordium/concordium-rust-smart-contracts/pull/286.

Changes

Add bound for each type parameter when deriving Serial and Deserial.

Checklist

limemloh commented 1 year ago

I'll create another PR building on top of https://github.com/Concordium/concordium-contracts-common/pull/90