The init and receive methods use several traits and generics that are only there to support the old testing infrastructure.
Once https://github.com/Concordium/concordium-rust-smart-contracts/issues/337 is completed, we can simplify the code by using the concrete types instead of the traits (e.g. ExternHostApi instead of HasHost), and we can also remove some of the generic parameters.
Task description
The init and receive methods use several traits and generics that are only there to support the old testing infrastructure. Once https://github.com/Concordium/concordium-rust-smart-contracts/issues/337 is completed, we can simplify the code by using the concrete types instead of the traits (e.g.
ExternHostApi
instead ofHasHost
), and we can also remove some of the generic parameters.