A function intended to be a constructor is named incorrectly, which causes it to end up in the runtime bytecode instead of being a constructor.
Anyone can call the function that was supposed to be the constructor. As a result anyone can change the state variables initialized in this function.
- Use
constructor
instead of a named constructor
- Rubixi uses
DynamicPyramid
instead ofRubixi
as a constructor - An incorrectly named constructor