From 99329b013ce7f3af301d40c41f7eb35bff288910 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Wed, 29 Jan 2020 21:32:34 -0500 Subject: [PATCH] Exposed isBytes and isBytesLike in ethers.utils. --- packages/ethers/src.ts/utils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/ethers/src.ts/utils.ts b/packages/ethers/src.ts/utils.ts index 87b4e9e34a..c55cfc789a 100644 --- a/packages/ethers/src.ts/utils.ts +++ b/packages/ethers/src.ts/utils.ts @@ -3,7 +3,7 @@ import { AbiCoder, defaultAbiCoder, EventFragment, FormatTypes, Fragment, FunctionFragment, Indexed, Interface, ParamType } from "@ethersproject/abi"; 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 { arrayify, concat, hexDataSlice, hexDataLength, hexlify, hexStripZeros, hexValue, hexZeroPad, isBytes, isBytesLike, isHexString, joinSignature, zeroPad, splitSignature, stripZeros } from "@ethersproject/bytes"; import { hashMessage, id, isValidName, namehash } from "@ethersproject/hash"; import { defaultPath, entropyToMnemonic, HDNode, isValidMnemonic, mnemonicToEntropy, mnemonicToSeed } from "@ethersproject/hdnode"; import { getJsonWalletAddress } from "@ethersproject/json-wallets"; @@ -71,6 +71,9 @@ export { stripZeros, zeroPad, + isBytes, + isBytesLike, + defaultPath, HDNode, SigningKey,