diff options
author | Remco Bloemen <remco@wicked.ventures> | 2018-06-22 00:46:59 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-06-26 07:19:07 +0800 |
commit | f7337c1a05ff49eac6dbade08a73ee32b9c28f36 (patch) | |
tree | 2cfc457fee08cc5bf4d0d0d1fb65d9b77c2ba268 /packages/contracts/test/exchange | |
parent | 9341afe764a18c2104e598b25699a30cc1438d8e (diff) | |
download | dexon-sol-tools-f7337c1a05ff49eac6dbade08a73ee32b9c28f36.tar dexon-sol-tools-f7337c1a05ff49eac6dbade08a73ee32b9c28f36.tar.gz dexon-sol-tools-f7337c1a05ff49eac6dbade08a73ee32b9c28f36.tar.bz2 dexon-sol-tools-f7337c1a05ff49eac6dbade08a73ee32b9c28f36.tar.lz dexon-sol-tools-f7337c1a05ff49eac6dbade08a73ee32b9c28f36.tar.xz dexon-sol-tools-f7337c1a05ff49eac6dbade08a73ee32b9c28f36.tar.zst dexon-sol-tools-f7337c1a05ff49eac6dbade08a73ee32b9c28f36.zip |
Remove proxyId argument from dispatchTransferFrom
Diffstat (limited to 'packages/contracts/test/exchange')
-rw-r--r-- | packages/contracts/test/exchange/core.ts | 2 | ||||
-rw-r--r-- | packages/contracts/test/exchange/dispatcher.ts | 9 |
2 files changed, 4 insertions, 7 deletions
diff --git a/packages/contracts/test/exchange/core.ts b/packages/contracts/test/exchange/core.ts index ff652d3aa..5b2d4590f 100644 --- a/packages/contracts/test/exchange/core.ts +++ b/packages/contracts/test/exchange/core.ts @@ -86,7 +86,7 @@ describe('Exchange core', () => { artifacts.Exchange, provider, txDefaults, - zrxToken.address, + assetProxyUtils.encodeERC20AssetData(zrxToken.address), ); exchangeWrapper = new ExchangeWrapper(exchange, provider); await exchangeWrapper.registerAssetProxyAsync(AssetProxyId.ERC20, erc20Proxy.address, owner); diff --git a/packages/contracts/test/exchange/dispatcher.ts b/packages/contracts/test/exchange/dispatcher.ts index abbfd7ac7..f96f15f16 100644 --- a/packages/contracts/test/exchange/dispatcher.ts +++ b/packages/contracts/test/exchange/dispatcher.ts @@ -276,14 +276,13 @@ describe('AssetProxyDispatcher', () => { ); // Construct metadata for ERC20 proxy const encodedAssetData = assetProxyUtils.encodeERC20AssetData(zrxToken.address); - const encodedAssetDataWithoutProxyId = encodedAssetData.slice(0, -2); + // Perform a transfer from makerAddress to takerAddress const erc20Balances = await erc20Wrapper.getBalancesAsync(); const amount = new BigNumber(10); await web3Wrapper.awaitTransactionSuccessAsync( await assetProxyDispatcher.publicDispatchTransferFrom.sendTransactionAsync( - encodedAssetDataWithoutProxyId, - AssetProxyId.ERC20, + encodedAssetData, makerAddress, takerAddress, amount, @@ -304,13 +303,11 @@ describe('AssetProxyDispatcher', () => { it('should throw if dispatching to unregistered proxy', async () => { // Construct metadata for ERC20 proxy const encodedAssetData = assetProxyUtils.encodeERC20AssetData(zrxToken.address); - const encodedAssetDataWithoutProxyId = encodedAssetData.slice(0, -2); // Perform a transfer from makerAddress to takerAddress const amount = new BigNumber(10); return expectRevertOrAlwaysFailingTransactionAsync( assetProxyDispatcher.publicDispatchTransferFrom.sendTransactionAsync( - encodedAssetDataWithoutProxyId, - AssetProxyId.ERC20, + encodedAssetData, makerAddress, takerAddress, amount, |