Fix match orders test and add a validation TODO
This commit is contained in:
		@@ -625,7 +625,9 @@ export class ExchangeWrapper extends ContractWrapper {
 | 
			
		||||
        await assert.isSenderAddressAsync('takerAddress', takerAddress, this._web3Wrapper);
 | 
			
		||||
        assert.doesConformToSchema('orderTransactionOpts', orderTransactionOpts, orderTxOptsSchema, [txOptsSchema]);
 | 
			
		||||
        const normalizedTakerAddress = takerAddress.toLowerCase();
 | 
			
		||||
 | 
			
		||||
        // TODO(logvinov): Check that:
 | 
			
		||||
        // rightOrder.makerAssetData === leftOrder.takerAssetData;
 | 
			
		||||
        // rightOrder.takerAssetData === leftOrder.makerAssetData;
 | 
			
		||||
        const exchangeInstance = await this._getExchangeContractAsync();
 | 
			
		||||
        const txHash = await exchangeInstance.matchOrders.sendTransactionAsync(
 | 
			
		||||
            leftSignedOrder,
 | 
			
		||||
 
 | 
			
		||||
@@ -220,10 +220,17 @@ describe('ExchangeWrapper', () => {
 | 
			
		||||
            });
 | 
			
		||||
        });
 | 
			
		||||
        describe('#matchOrdersAsync', () => {
 | 
			
		||||
            it.skip('should match two valid ordersr', async () => {
 | 
			
		||||
            it('should match two valid ordersr', async () => {
 | 
			
		||||
                const matchingSignedOrder = await fillScenarios.createFillableSignedOrderAsync(
 | 
			
		||||
                    takerAssetData,
 | 
			
		||||
                    makerAssetData,
 | 
			
		||||
                    makerAddress,
 | 
			
		||||
                    takerAddress,
 | 
			
		||||
                    fillableAmount,
 | 
			
		||||
                );
 | 
			
		||||
                txHash = await contractWrappers.exchange.matchOrdersAsync(
 | 
			
		||||
                    signedOrder,
 | 
			
		||||
                    anotherSignedOrder,
 | 
			
		||||
                    matchingSignedOrder,
 | 
			
		||||
                    takerAddress,
 | 
			
		||||
                );
 | 
			
		||||
                await web3Wrapper.awaitTransactionSuccessAsync(txHash, constants.AWAIT_TRANSACTION_MINED_MS);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user