Skip to main content

Overview

Error.getSelector returns the first 4 bytes of the keccak256 hash of the error signature.

Quick Start

Notes

  • Uses canonical types for signatures (e.g. uint256).
  • Error selectors are 4 bytes, like function selectors.

See Also