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