ethereumjs-monorepo

@ethereumjs/util


@ethereumjs/util / createContractAddress2

Function: createContractAddress2()

createContractAddress2(from, salt, initCode): Address

Defined in: packages/util/src/address.ts:146

Generates an address for a contract created using CREATE2.

Parameters

from

Address

The address which is creating this new address

salt

Uint8Array

A salt

initCode

Uint8Array

The init code of the contract being created

Returns

Address