# computeCreate2Address

Description: computeCreate2Address cheatcode documentation

Note: This document was authored using MDX

  Source: https://github.com/NomicFoundation/hardhat-website/tree/main/src/content/docs/docs/reference/cheatcodes/Utilities/compute-create2-address.mdx

### Signature

```solidity
function computeCreate2Address(
  bytes32 salt,
  bytes32 initCodeHash,
  address deployer
) external pure returns (address);
function computeCreate2Address(
  bytes32 salt,
  bytes32 initCodeHash
) external pure returns (address);
```

### Description

Compute the address of a contract created with CREATE2. If `deployer` is not specified, the default CREATE2 deployer is used.
