From f06e62e5536d4d8c01706baf2a855a38b95d7ab7 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Mon, 6 Jan 2020 18:51:36 -0500 Subject: [PATCH] Added function to generate CREATE2 addresses (#697). --- src.ts/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src.ts/utils.ts b/src.ts/utils.ts index 826633c2d2..ac1b611f8e 100644 --- a/src.ts/utils.ts +++ b/src.ts/utils.ts @@ -1,7 +1,7 @@ "use strict"; import { AbiCoder, defaultAbiCoder, EventFragment, FormatTypes, Fragment, FunctionFragment, Indexed, Interface, ParamType } from "@ethersproject/abi"; -import { getAddress, getContractAddress, getIcapAddress, isAddress } from "@ethersproject/address"; +import { getAddress, getCreate2Address, getContractAddress, getIcapAddress, isAddress } from "@ethersproject/address"; import * as base64 from "@ethersproject/base64"; import { arrayify, concat, hexDataSlice, hexDataLength, hexlify, hexStripZeros, hexValue, hexZeroPad, isHexString, joinSignature, zeroPad, splitSignature, stripZeros } from "@ethersproject/bytes"; import { hashMessage, id, isValidName, namehash } from "@ethersproject/hash"; @@ -102,6 +102,7 @@ export { getAddress, getIcapAddress, getContractAddress, + getCreate2Address, isAddress, formatEther,