* 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
11 lines
218 B
TypeScript
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);
|
|
}
|