diff --git a/contracts/coordinator/CHANGELOG.json b/contracts/coordinator/CHANGELOG.json index 28f31eee5c..5e4de0da30 100644 --- a/contracts/coordinator/CHANGELOG.json +++ b/contracts/coordinator/CHANGELOG.json @@ -1,4 +1,3 @@ - [ { "version": "2.0.9", diff --git a/contracts/erc1155/CHANGELOG.json b/contracts/erc1155/CHANGELOG.json index 968eb49b0f..38c845e207 100644 --- a/contracts/erc1155/CHANGELOG.json +++ b/contracts/erc1155/CHANGELOG.json @@ -1,4 +1,3 @@ - [ { "version": "1.1.11", diff --git a/contracts/utils/contracts/test/TestLogDecoding.sol b/contracts/utils/contracts/test/TestLogDecoding.sol index b79b66200b..145cebf143 100644 --- a/contracts/utils/contracts/test/TestLogDecoding.sol +++ b/contracts/utils/contracts/test/TestLogDecoding.sol @@ -20,6 +20,7 @@ pragma solidity ^0.5.5; import "./TestLogDecodingDownstream.sol"; + contract TestLogDecoding { /// @dev arbitrary event; fields to not matter. diff --git a/contracts/utils/contracts/test/TestLogDecodingDownstream.sol b/contracts/utils/contracts/test/TestLogDecodingDownstream.sol index e977f93c82..adb2ffe453 100644 --- a/contracts/utils/contracts/test/TestLogDecodingDownstream.sol +++ b/contracts/utils/contracts/test/TestLogDecodingDownstream.sol @@ -18,12 +18,14 @@ pragma solidity ^0.5.5; + contract ITestLogDecodingDownstream { /// @dev Emits a local event function emitEvent() external; } + contract TestLogDecodingDownstream is ITestLogDecodingDownstream { diff --git a/contracts/utils/test/log_decoding.ts b/contracts/utils/test/log_decoding.ts index f74a72a928..3422dc06b1 100644 --- a/contracts/utils/test/log_decoding.ts +++ b/contracts/utils/test/log_decoding.ts @@ -16,13 +16,13 @@ describe.only('TestLogDecoding', () => { let testLogDecodingDeployedWithoutDependencies: TestLogDecodingContract; const expectedEvent = { foo: new BigNumber(256), - bar: "0x1234", - car: "4321", + bar: '0x1234', + car: '4321', }; const expectedDownstreamEvent = { lorem: new BigNumber(256), - ipsum: "4321", - } + ipsum: '4321', + }; const emptyDependencyList = {}; before(async () => { @@ -30,13 +30,13 @@ describe.only('TestLogDecoding', () => { artifacts.TestLogDecoding, provider, txDefaults, - emptyDependencyList + emptyDependencyList, ); testLogDecodingWithDependencies = await TestLogDecodingContract.deployFrom0xArtifactAsync( artifacts.TestLogDecoding, provider, txDefaults, - artifacts + artifacts, ); }); beforeEach(async () => { @@ -50,21 +50,27 @@ describe.only('TestLogDecoding', () => { it('should decode locally emitted event args when no dependencies are passed into wrapper', async () => { const txReceipt = await testLogDecodingDeployedWithoutDependencies.emitEvent.awaitTransactionSuccessAsync(); expect(txReceipt.logs.length).to.be.equal(1); + // tslint:disable no-unnecessary-type-assertion expect((txReceipt.logs[0] as LogWithDecodedArgs).args).to.be.deep.equal(expectedEvent); }); it('should not event args when no dependencies are passed into wrapper', async () => { const txReceipt = await testLogDecodingDeployedWithoutDependencies.emitEventDownstream.awaitTransactionSuccessAsync(); - expect((txReceipt.logs[0] as LogWithDecodedArgs).args).to.be.undefined();//(emptyArgs); + // tslint:disable no-unnecessary-type-assertion + expect((txReceipt.logs[0] as LogWithDecodedArgs).args).to.be.undefined(); }); it('should decode locally emitted event args when dependencies are passed into wrapper', async () => { const txReceipt = await testLogDecodingWithDependencies.emitEvent.awaitTransactionSuccessAsync(); expect(txReceipt.logs.length).to.be.equal(1); + // tslint:disable no-unnecessary-type-assertion expect((txReceipt.logs[0] as LogWithDecodedArgs).args).to.be.deep.equal(expectedEvent); }); it('should decode downstream event args when dependencies are passed into wrapper', async () => { const txReceipt = await testLogDecodingWithDependencies.emitEventDownstream.awaitTransactionSuccessAsync(); expect(txReceipt.logs.length).to.be.equal(1); - expect((txReceipt.logs[0] as LogWithDecodedArgs).args).to.be.deep.equal(expectedDownstreamEvent); + // tslint:disable no-unnecessary-type-assertion + expect((txReceipt.logs[0] as LogWithDecodedArgs).args).to.be.deep.equal( + expectedDownstreamEvent, + ); }); }); });