NethermindEth / StarknetByExample

A collection of examples of Cairo smart contracts for Starknet.
https://starknet-by-example.voyager.online/
MIT License
101 stars 77 forks source link

Request to Add Enums in StarknetByExample #209

Closed hardiktheprogrammer closed 1 month ago

hardiktheprogrammer commented 1 month ago

Description:

This feature request is for adding examples of declaring and importing enums in the starknetbyExample. Enums are a powerful tool in programming, and their usage in StarkNet contracts can enhance code readability and maintainability. Providing clear examples of enum declarations and imports will help developers understand and utilize this feature effectively.

Criteria:

  1. Enum Declaration: Show how to declare enums outside of a contract for reusability and modularity.
  2. Enum Imports: Demonstrate how to import enums into contracts where they are needed.
  3. Example Use Cases: Provide practical examples of how enums can be used in cairo contracts.
  4. Comprehensive Explanation: Include detailed explanations and comments to ensure clarity.
NueloSE commented 1 month ago

@hardiktheprogrammer can I be assigned to work on this

hardiktheprogrammer commented 1 month ago

@hardiktheprogrammer can I be assigned to work on this

I m not maintainer of this repo would be great if team will work on this issue

julio4 commented 1 month ago

Well @hudem1 was fast. Quick and nice add, thank you @hardiktheprogrammer and @hudem1