# expectCreate2

Description: expectCreate2 cheatcode documentation

Note: This document was authored using MDX

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

### Signature

```solidity
function expectCreate2(bytes calldata bytecode, address deployer) external;
```

### Description

Expects the deployment of the specified bytecode by the specified address using the CREATE2 opcode
