Skip to content

Revert if calldata has wrong size #2109

@chriseth

Description

@chriseth

An external function should revert in the following additional situations:

  • it has statically-sized arguments and the calldata size does not exactly match that size
  • it has dynamically-sized arguments and the calldata is shorter than the shortest possible encoding

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions