diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-08 03:44:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-08 03:44:22 +0800 |
commit | 9bc6ebde4e4425799ed3ddfb50495029865e3ae8 (patch) | |
tree | fe15c8c1abbe77d5e10914ae509b653295862fc6 /packages/contract-wrappers/src/utils/utils.ts | |
parent | 96b31f39749fb32bd89978245c79aa637791336c (diff) | |
parent | 011f14d1155fd3f61e53aaa16681afd5c9c9f892 (diff) | |
download | dexon-sol-tools-9bc6ebde4e4425799ed3ddfb50495029865e3ae8.tar dexon-sol-tools-9bc6ebde4e4425799ed3ddfb50495029865e3ae8.tar.gz dexon-sol-tools-9bc6ebde4e4425799ed3ddfb50495029865e3ae8.tar.bz2 dexon-sol-tools-9bc6ebde4e4425799ed3ddfb50495029865e3ae8.tar.lz dexon-sol-tools-9bc6ebde4e4425799ed3ddfb50495029865e3ae8.tar.xz dexon-sol-tools-9bc6ebde4e4425799ed3ddfb50495029865e3ae8.tar.zst dexon-sol-tools-9bc6ebde4e4425799ed3ddfb50495029865e3ae8.zip |
Merge pull request #671 from 0xProject/refactor/move-spawn-switch-to-utils
Move spawnSwitchErr to @0xproject/utils
Diffstat (limited to 'packages/contract-wrappers/src/utils/utils.ts')
-rw-r--r-- | packages/contract-wrappers/src/utils/utils.ts | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/packages/contract-wrappers/src/utils/utils.ts b/packages/contract-wrappers/src/utils/utils.ts index 7cf9450a0..689a7ee0a 100644 --- a/packages/contract-wrappers/src/utils/utils.ts +++ b/packages/contract-wrappers/src/utils/utils.ts @@ -1,9 +1,6 @@ import { BigNumber } from '@0xproject/utils'; export const utils = { - spawnSwitchErr(name: string, value: any): Error { - return new Error(`Unexpected switch value: ${value} encountered for ${name}`); - }, getCurrentUnixTimestampSec(): BigNumber { const milisecondsInSecond = 1000; return new BigNumber(Date.now() / milisecondsInSecond).round(); |