diff options
author | Fabio Berger <me@fabioberger.com> | 2018-04-11 21:00:54 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-04-11 21:00:54 +0800 |
commit | f892b7dbf657f71f4fec177e838883de8327624b (patch) | |
tree | a8562cf591382b619af96adb55f0709f02f75af6 /packages/contracts | |
parent | b146acc69e46d2565474bcb4d47bfa760fd26fad (diff) | |
download | dexon-0x-contracts-f892b7dbf657f71f4fec177e838883de8327624b.tar.gz dexon-0x-contracts-f892b7dbf657f71f4fec177e838883de8327624b.tar.zst dexon-0x-contracts-f892b7dbf657f71f4fec177e838883de8327624b.zip |
Move NULL_BYTES to @0xproject/utils
Diffstat (limited to 'packages/contracts')
-rw-r--r-- | packages/contracts/test/token_registry.ts | 6 | ||||
-rw-r--r-- | packages/contracts/util/constants.ts | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/packages/contracts/test/token_registry.ts b/packages/contracts/test/token_registry.ts index 12fc52dbc..4c404176b 100644 --- a/packages/contracts/test/token_registry.ts +++ b/packages/contracts/test/token_registry.ts @@ -1,6 +1,6 @@ import { ZeroEx } from '0x.js'; import { BlockchainLifecycle, devConstants, web3Factory } from '@0xproject/dev-utils'; -import { BigNumber } from '@0xproject/utils'; +import { BigNumber, NULL_BYTES } from '@0xproject/utils'; import { Web3Wrapper } from '@0xproject/web3-wrapper'; import * as chai from 'chai'; import ethUtil = require('ethereumjs-util'); @@ -66,8 +66,8 @@ describe('TokenRegistry', () => { name: '', symbol: '', decimals: 0, - ipfsHash: constants.NULL_BYTES, - swarmHash: constants.NULL_BYTES, + ipfsHash: NULL_BYTES, + swarmHash: NULL_BYTES, }; describe('addToken', () => { diff --git a/packages/contracts/util/constants.ts b/packages/contracts/util/constants.ts index 9bb090a2a..d1152e683 100644 --- a/packages/contracts/util/constants.ts +++ b/packages/contracts/util/constants.ts @@ -4,7 +4,6 @@ const DUMMY_TOKEN_DECIMALS = 18; const DUMMY_TOKEN_TOTAL_SUPPLY = 0; export const constants = { - NULL_BYTES: '0x', INVALID_OPCODE: 'invalid opcode', REVERT: 'revert', TESTRPC_NETWORK_ID: 50, |