aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-05-25 06:33:56 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-05-25 06:39:19 +0800
commit237ebb07161c46fa85ca778a1c2ff60f63611bd7 (patch)
tree67deae8c77054c06435521b05016fda3ac63e780 /packages/contracts/test
parentfdea260e41111f3d27c05ab2d2523d2473c1ac05 (diff)
downloaddexon-sol-tools-237ebb07161c46fa85ca778a1c2ff60f63611bd7.tar
dexon-sol-tools-237ebb07161c46fa85ca778a1c2ff60f63611bd7.tar.gz
dexon-sol-tools-237ebb07161c46fa85ca778a1c2ff60f63611bd7.tar.bz2
dexon-sol-tools-237ebb07161c46fa85ca778a1c2ff60f63611bd7.tar.lz
dexon-sol-tools-237ebb07161c46fa85ca778a1c2ff60f63611bd7.tar.xz
dexon-sol-tools-237ebb07161c46fa85ca778a1c2ff60f63611bd7.tar.zst
dexon-sol-tools-237ebb07161c46fa85ca778a1c2ff60f63611bd7.zip
Use web3-wrapper instead of 0x.js, update logDecoder
Diffstat (limited to 'packages/contracts/test')
-rw-r--r--packages/contracts/test/asset_proxy_owner.ts9
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/contracts/test/asset_proxy_owner.ts b/packages/contracts/test/asset_proxy_owner.ts
index 7a520d0ad..db68b5678 100644
--- a/packages/contracts/test/asset_proxy_owner.ts
+++ b/packages/contracts/test/asset_proxy_owner.ts
@@ -1,5 +1,5 @@
-import { LogWithDecodedArgs, ZeroEx } from '0x.js';
import { BlockchainLifecycle } from '@0xproject/dev-utils';
+import { LogWithDecodedArgs } from '@0xproject/types';
import { BigNumber } from '@0xproject/utils';
import * as chai from 'chai';
import * as _ from 'lodash';
@@ -23,7 +23,6 @@ import { provider, txDefaults, web3Wrapper } from '../src/utils/web3_wrapper';
chaiSetup.configure();
const expect = chai.expect;
const blockchainLifecycle = new BlockchainLifecycle(web3Wrapper);
-const zeroEx = new ZeroEx(provider, { networkId: constants.TESTRPC_NETWORK_ID });
describe('AssetProxyOwner', () => {
let owners: string[];
@@ -60,7 +59,7 @@ describe('AssetProxyOwner', () => {
REQUIRED_APPROVALS,
SECONDS_TIME_LOCKED,
);
- multiSigWrapper = new MultiSigWrapper(multiSig, zeroEx);
+ multiSigWrapper = new MultiSigWrapper(multiSig, provider);
await erc20Proxy.transferOwnership.sendTransactionAsync(multiSig.address, { from: initialOwner });
await erc721Proxy.transferOwnership.sendTransactionAsync(multiSig.address, { from: initialOwner });
});
@@ -89,7 +88,7 @@ describe('AssetProxyOwner', () => {
expect(isErc721ProxyRegistered).to.equal(true);
});
it('should throw if a null address is included in assetProxyContracts', async () => {
- const assetProxyContractAddresses = [erc20Proxy.address, ZeroEx.NULL_ADDRESS];
+ const assetProxyContractAddresses = [erc20Proxy.address, constants.NULL_ADDRESS];
return expect(
AssetProxyOwnerContract.deployFrom0xArtifactAsync(
artifacts.AssetProxyOwner,
@@ -161,7 +160,7 @@ describe('AssetProxyOwner', () => {
});
it('should fail if registering a null address', async () => {
- const addressToRegister = ZeroEx.NULL_ADDRESS;
+ const addressToRegister = constants.NULL_ADDRESS;
const isRegistered = true;
const registerAssetProxyData = multiSig.registerAssetProxy.getABIEncodedTransactionData(
addressToRegister,