diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-06 22:26:04 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-06 22:26:04 +0800 |
commit | cf8fdd3a701f21bfc3b2ec8397fa65948f5cdc78 (patch) | |
tree | 1ab6a8d6b8588707286fc56a632dca9ceca7e7ac /packages/contract-wrappers/src | |
parent | af1d5fce6ea355b12bf5f63f51ea81ff596f7868 (diff) | |
download | dexon-sol-tools-cf8fdd3a701f21bfc3b2ec8397fa65948f5cdc78.tar.gz dexon-sol-tools-cf8fdd3a701f21bfc3b2ec8397fa65948f5cdc78.tar.zst dexon-sol-tools-cf8fdd3a701f21bfc3b2ec8397fa65948f5cdc78.zip |
Move spawnSwitchErr to @0xproject/utils
Diffstat (limited to 'packages/contract-wrappers/src')
-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(); |