We introduce a new macro #[drink::contract_bundle_provider] which provides a convenient way of obtaining contract bundles in drink testing.
This bundling provision wasn't done within #[drink:test] macro so as to avoid generating enums and implementations per-testcase. Now the user has to (although they can still get bytes/transcoders manually or use ContractBundle API) add one new type to the test module:
Follow-up to #70 and #68.
We introduce a new macro
#[drink::contract_bundle_provider]
which provides a convenient way of obtaining contract bundles in drink testing.This bundling provision wasn't done within
#[drink:test]
macro so as to avoid generating enums and implementations per-testcase. Now the user has to (although they can still get bytes/transcoders manually or useContractBundle
API) add one new type to the test module:which will be expanded to:
(assuming that we are using it within
flipper
project and we havecounter
as a contract dependency inCargo.toml
)