aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/redux/reducer.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-05-24 01:16:00 +0800
committerGitHub <noreply@github.com>2018-05-24 01:16:00 +0800
commitaf0d9439d4f4e05fce8018665e375cf2db07184c (patch)
tree742553368d37009b6631ca6441e8a8aefac6dc53 /packages/website/ts/redux/reducer.ts
parentf3fe9661f65f5ac58d45e965b7be02e9738df1c4 (diff)
parent65f09d052831e7722f62478db6026ebb855c7f2c (diff)
downloaddexon-sol-tools-af0d9439d4f4e05fce8018665e375cf2db07184c.tar
dexon-sol-tools-af0d9439d4f4e05fce8018665e375cf2db07184c.tar.gz
dexon-sol-tools-af0d9439d4f4e05fce8018665e375cf2db07184c.tar.bz2
dexon-sol-tools-af0d9439d4f4e05fce8018665e375cf2db07184c.tar.lz
dexon-sol-tools-af0d9439d4f4e05fce8018665e375cf2db07184c.tar.xz
dexon-sol-tools-af0d9439d4f4e05fce8018665e375cf2db07184c.tar.zst
dexon-sol-tools-af0d9439d4f4e05fce8018665e375cf2db07184c.zip
Merge pull request #611 from 0xProject/feature/remove-0x-from=-website
Remove 0x.js as a dependency from website
Diffstat (limited to 'packages/website/ts/redux/reducer.ts')
-rw-r--r--packages/website/ts/redux/reducer.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/website/ts/redux/reducer.ts b/packages/website/ts/redux/reducer.ts
index bb8f1472b..fba6afa5d 100644
--- a/packages/website/ts/redux/reducer.ts
+++ b/packages/website/ts/redux/reducer.ts
@@ -1,4 +1,5 @@
-import { ECSignature, ZeroEx } from '0x.js';
+import { constants, generatePseudoRandomSalt } from '@0xproject/order-utils';
+import { ECSignature } from '@0xproject/types';
import { BigNumber } from '@0xproject/utils';
import * as _ from 'lodash';
import * as moment from 'moment';
@@ -65,8 +66,8 @@ const INITIAL_STATE: State = {
s: '',
v: 27,
},
- orderTakerAddress: ZeroEx.NULL_ADDRESS,
- orderSalt: ZeroEx.generatePseudoRandomSalt(),
+ orderTakerAddress: constants.NULL_ADDRESS,
+ orderSalt: generatePseudoRandomSalt(),
nodeVersion: undefined,
screenWidth: utils.getScreenWidth(),
shouldBlockchainErrDialogBeOpen: false,