Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1.09 KB

Contract name duplication leaves codebase error-prone.md

File metadata and controls

29 lines (23 loc) · 1.09 KB

The codebase has multiple contracts that share the same name.

This allows buidler-waffle to generate incorrect json artifacts, preventing third parties from using their tools. Buidler-waffle does not correctly support a codebase with duplicate contract names.

The compilation overwrites compilation artifacts and prevents the use of third-party tools, such as Slither.

Recommendation:

Short term, prevent the re-use of duplicate contract names or change the compilation framework.

Long term, use Slither, which will help detect duplicate contract names.


Slide Screenshot

156.jpg


Slide Text

  • ToB Audit Hermez Network Finding 22
  • Undefined Behavior
  • Contract Names
  • Duplicates
  • Avoid Duplicate Names

References


Tags