diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-04-12 01:18:02 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-04-21 04:56:17 +0800 |
commit | cc77f8489e5a176406d4871772fcbae58703bafc (patch) | |
tree | ec7853d21d5bf9d62aaab3b47249c3032a100ba5 /packages/contracts/test/exchange | |
parent | 564ddff4c72cb86be1bce0e4bdea4e5d7b5d63be (diff) | |
download | dexon-0x-contracts-cc77f8489e5a176406d4871772fcbae58703bafc.tar.gz dexon-0x-contracts-cc77f8489e5a176406d4871772fcbae58703bafc.tar.zst dexon-0x-contracts-cc77f8489e5a176406d4871772fcbae58703bafc.zip |
nilAddress to ZeroEx.NULL_ADDRESS
Diffstat (limited to 'packages/contracts/test/exchange')
-rw-r--r-- | packages/contracts/test/exchange/core.ts | 7 | ||||
-rw-r--r-- | packages/contracts/test/exchange/helpers.ts | 5 | ||||
-rw-r--r-- | packages/contracts/test/exchange/wrapper.ts | 5 |
3 files changed, 7 insertions, 10 deletions
diff --git a/packages/contracts/test/exchange/core.ts b/packages/contracts/test/exchange/core.ts index 58b528062..d95dbea35 100644 --- a/packages/contracts/test/exchange/core.ts +++ b/packages/contracts/test/exchange/core.ts @@ -149,23 +149,22 @@ describe('Exchange', () => { await tokenTransferProxy.addAuthorizedAddress.sendTransactionAsync(erc20TransferProxyV1.address, { from: accounts[0], }); - const nilAddress = '0x0000000000000000000000000000000000000000'; await assetProxyDispatcher.addAssetProxy.sendTransactionAsync( AssetProxyId.ERC20_V1, erc20TransferProxyV1.address, - nilAddress, + ZeroEx.NULL_ADDRESS, { from: accounts[0] }, ); await assetProxyDispatcher.addAssetProxy.sendTransactionAsync( AssetProxyId.ERC20, erc20TransferProxy.address, - nilAddress, + ZeroEx.NULL_ADDRESS, { from: accounts[0] }, ); await assetProxyDispatcher.addAssetProxy.sendTransactionAsync( AssetProxyId.ERC721, erc721TransferProxy.address, - nilAddress, + ZeroEx.NULL_ADDRESS, { from: accounts[0] }, ); zeroEx = new ZeroEx(provider, { diff --git a/packages/contracts/test/exchange/helpers.ts b/packages/contracts/test/exchange/helpers.ts index 7a267a3e9..ab5419e4f 100644 --- a/packages/contracts/test/exchange/helpers.ts +++ b/packages/contracts/test/exchange/helpers.ts @@ -64,17 +64,16 @@ describe('Exchange', () => { await tokenTransferProxy.addAuthorizedAddress.sendTransactionAsync(erc20TransferProxyV1.address, { from: accounts[0], }); - const nilAddress = '0x0000000000000000000000000000000000000000'; await assetProxyDispatcher.addAssetProxy.sendTransactionAsync( AssetProxyId.ERC20_V1, erc20TransferProxyV1.address, - nilAddress, + ZeroEx.NULL_ADDRESS, { from: accounts[0] }, ); await assetProxyDispatcher.addAssetProxy.sendTransactionAsync( AssetProxyId.ERC20, erc20TransferProxy.address, - nilAddress, + ZeroEx.NULL_ADDRESS, { from: accounts[0] }, ); const zeroEx = new ZeroEx(provider, { networkId: constants.TESTRPC_NETWORK_ID }); diff --git a/packages/contracts/test/exchange/wrapper.ts b/packages/contracts/test/exchange/wrapper.ts index 708ac5562..5b0564fd2 100644 --- a/packages/contracts/test/exchange/wrapper.ts +++ b/packages/contracts/test/exchange/wrapper.ts @@ -114,17 +114,16 @@ describe('Exchange', () => { await tokenTransferProxy.addAuthorizedAddress.sendTransactionAsync(erc20TransferProxyV1.address, { from: accounts[0], }); - const nilAddress = '0x0000000000000000000000000000000000000000'; await assetProxyDispatcher.addAssetProxy.sendTransactionAsync( AssetProxyId.ERC20_V1, erc20TransferProxyV1.address, - nilAddress, + ZeroEx.NULL_ADDRESS, { from: accounts[0] }, ); await assetProxyDispatcher.addAssetProxy.sendTransactionAsync( AssetProxyId.ERC20, erc20TransferProxy.address, - nilAddress, + ZeroEx.NULL_ADDRESS, { from: accounts[0] }, ); const zeroEx = new ZeroEx(provider, { networkId: constants.TESTRPC_NETWORK_ID }); |