suzaku-network / suzaku-contracts-library

An open-source smart contracts library curated by the Suzaku team
Other
4 stars 0 forks source link

ICM: Name mappings parameters #14

Closed Nuttymoon closed 1 month ago

Nuttymoon commented 1 month ago

image

Nuttymoon commented 1 month ago

Since Solidity 0.8.18, developers can utilize named parameters in mappings. This means mappings can take the form of mapping(KeyType KeyName? => ValueType ValueName?). This updated syntax provides a more transparent representation of the mapping's purpose.

Throughout the codebase, there are multiple mappings without named parameters. For instance:

Consider adding named parameters to the mappings to improve readability and maintainability of the code.