Description
Allow the caller to pass metadata into create_package instead of always using an empty map.
Requirements
- Update
create_package signature to accept metadata: Map<Symbol, String>.
- Store the provided metadata in the
Package struct instead of constructing an empty map.
- Add tests creating a package with some metadata keys and validating they are stored and retrievable.
- Consider basic constraints (for now just rely on gas limits; no hard limit required).
Complexity
Description
Allow the caller to pass metadata into
create_packageinstead of always using an empty map.Requirements
create_packagesignature to acceptmetadata: Map<Symbol, String>.Packagestruct instead of constructing an empty map.Complexity