Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 899 Bytes

Test and production constants in the same codebase.md

File metadata and controls

25 lines (21 loc) · 899 Bytes

The CoreOrchestrator contract defines the TEST_MODE boolean variable which is used to define several constants in the system.

This decreases legibility of production code, and makes the system's integral values more error-prone.

Recommendation:

Consider having different environments for production and testing, with different contracts.


Slide Screenshot

187.jpg


Slide Text

  • OpenZeppelin Fei Protocol Finding N22
  • Testing
  • Code Constants -> Test & Production
  • Test & Production
  • Different Environments

References


Tags