Skip to content

Latest commit

 

History

History
19 lines (19 loc) · 845 Bytes

Private methods overridden.md

File metadata and controls

19 lines (19 loc) · 845 Bytes

While private methods of base contracts are not visible and cannot be called directly from the derived contract, it is still possible to declare a function of the same name and type and thus change the behaviour of the base contract's function. This is due to a compiler bug introduced in v0.3.0 and fixed in v0.5.17. (see here)


Slide Screenshot

088.jpg


Slide Text

  • Private Functions Base -> Derived
  • Not Visible -> Derived
  • Function -> Same Name/Type
  • Base Private Function
  • Change Behavior
  • Compiler Bug -> Fixed
  • solc 0.3.0 -> 0.5.17

References


Tags