Function computeDeploymentAddress

  • Pre-compute a contract's deployment address for a CREATE2 deployment.

    Parameters

    • bytecode: string

      Creation bytecode of the contract to deploy

    • encodedArgs: BytesLike

      Abi-encoded constructor params

    • create2FactoryAddress: string

      The create2 factory address to use

    • Optional salt: string

    Returns string

Generated using TypeDoc