23.md

September 28, 2022 ยท View on GitHub

Incorrect interface

Description:

A contract interface defines functions with a different type signature than the implementation, causing two different method id's to be created. As a result, when the interfact is called, the fallback method will be executed.

Remediation:

Verify that type signatures are identical between inferfaces and implementations.

References:

https://github.com/crytic/not-so-smart-contracts/tree/master/incorrect_interface

Contents

  1. 1Incorrect interface
  2. 1.1Description:
  3. 1.2Remediation:
  4. 1.3References: