protocol/contracts/test-utils/src/address_utils.ts
Xianny fcbcbac889
Remove assetDataUtils everywhere (#2373)
* remove assetDataUtils everywhere

* export IAssetDataContract from @0x/contract-wrappers to allow @0x/instant to decode asset data  synchronously

* export generic function `decodeAssetDataOrThrow` and add ERC20Bridge support

* export `hexUtils` from order-utils instead of contracts-test-utils
2019-12-04 13:08:08 -08:00

11 lines
218 B
TypeScript

import { hexUtils } from '@0x/utils';
import { constants } from './constants';
/**
* Generates a random address.
*/
export function randomAddress(): string {
return hexUtils.random(constants.ADDRESS_LENGTH);
}