Skip to content

Commit

Permalink
Merge pull request #2391 from ethereum/issue/2368
Browse files Browse the repository at this point in the history
EventLogDecoder fixed
  • Loading branch information
nivida authored Feb 20, 2019
2 parents 82819bc + 0841388 commit ac0dde7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/web3-eth-contract/src/decoders/EventLogDecoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class EventLogDecoder {
decode(abiItemModel, response) {
let argTopics = response.topics;

if (abiItemModel.anonymous) {
if (!abiItemModel.anonymous) {
argTopics = response.topics.slice(1);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('AllEventsLogDecoderTest', () => {

expect(abiModelMock.getEventBySignature).toHaveBeenCalledWith('0x0');

expect(abiCoderMock.decodeLog).toHaveBeenCalledWith([], '0x0', ['0x0']);
expect(abiCoderMock.decodeLog).toHaveBeenCalledWith([], '0x0', []);

expect(abiItemModel.getInputs).toHaveBeenCalled();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('EventLogDecoderTest', () => {

expect(decodedLog.returnValues).toEqual(['0x0']);

expect(abiCoderMock.decodeLog).toHaveBeenCalledWith([], '0x0', ['0x0']);
expect(abiCoderMock.decodeLog).toHaveBeenCalledWith([], '0x0', []);

expect(abiItemModel.getInputs).toHaveBeenCalled();
});
Expand Down

0 comments on commit ac0dde7

Please sign in to comment.