aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/exchange
diff options
context:
space:
mode:
authorGreg Hysen <greg.hysen@gmail.com>2018-07-14 05:13:16 +0800
committerGreg Hysen <greg.hysen@gmail.com>2018-07-18 21:50:58 +0800
commit9f74feb3475b14ebdf2a0b312856fc927f91b6ab (patch)
tree111d36532509023603a81ff62d06bc086c0ae86b /packages/contracts/test/exchange
parente2fb49a8f871fd4b631bb01bb641c632b7c19435 (diff)
downloaddexon-sol-tools-9f74feb3475b14ebdf2a0b312856fc927f91b6ab.tar
dexon-sol-tools-9f74feb3475b14ebdf2a0b312856fc927f91b6ab.tar.gz
dexon-sol-tools-9f74feb3475b14ebdf2a0b312856fc927f91b6ab.tar.bz2
dexon-sol-tools-9f74feb3475b14ebdf2a0b312856fc927f91b6ab.tar.lz
dexon-sol-tools-9f74feb3475b14ebdf2a0b312856fc927f91b6ab.tar.xz
dexon-sol-tools-9f74feb3475b14ebdf2a0b312856fc927f91b6ab.tar.zst
dexon-sol-tools-9f74feb3475b14ebdf2a0b312856fc927f91b6ab.zip
Removed receiverData and `onReceive` callback from ERC721 proxy.
Diffstat (limited to 'packages/contracts/test/exchange')
-rw-r--r--packages/contracts/test/exchange/core.ts24
1 files changed, 0 insertions, 24 deletions
diff --git a/packages/contracts/test/exchange/core.ts b/packages/contracts/test/exchange/core.ts
index 33246a681..b324988cc 100644
--- a/packages/contracts/test/exchange/core.ts
+++ b/packages/contracts/test/exchange/core.ts
@@ -456,30 +456,6 @@ describe('Exchange core', () => {
RevertReason.RoundingError,
);
});
-
- it('should throw if assetData has a length < 132', async () => {
- // Construct Exchange parameters
- const makerAssetId = erc721MakerAssetIds[0];
- const takerAssetId = erc721TakerAssetIds[0];
- const makerAssetData = assetDataUtils.encodeERC721AssetData(erc721Token.address, makerAssetId).slice(0, -2);
- signedOrder = await orderFactory.newSignedOrderAsync({
- makerAssetAmount: new BigNumber(1),
- takerAssetAmount: new BigNumber(1),
- makerAssetData,
- takerAssetData: assetDataUtils.encodeERC721AssetData(erc721Token.address, takerAssetId),
- });
- // Verify pre-conditions
- const initialOwnerMakerAsset = await erc721Token.ownerOf.callAsync(makerAssetId);
- expect(initialOwnerMakerAsset).to.be.bignumber.equal(makerAddress);
- const initialOwnerTakerAsset = await erc721Token.ownerOf.callAsync(takerAssetId);
- expect(initialOwnerTakerAsset).to.be.bignumber.equal(takerAddress);
- // Call Exchange
- const takerAssetFillAmount = signedOrder.takerAssetAmount;
- return expectTransactionFailedAsync(
- exchangeWrapper.fillOrderAsync(signedOrder, takerAddress, { takerAssetFillAmount }),
- RevertReason.LengthGreaterThan131Required,
- );
- });
});
describe('getOrderInfo', () => {