Skip to main content
Returns the address that would result from a CREATE2 operation with the given from, salt and initCodeHash. To compute the initCodeHash from a contract’s init code, use the keccak256 function. For a quick overview and example of CREATE2, see Wisps: The Magical World of Create2.

Parameters

Returns

string The computed address.

Example

Throws

If the salt is not exactly 32 bytes long.

Throws

If the initCodeHash is not exactly 32 bytes long.

Source

address/contract-address.ts:79