Skip to content

Commit

Permalink
AllEventsLogDecoder fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Furter committed Feb 19, 2019
1 parent d98cef2 commit 4b174ed
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ export default class AllEventsLogDecoder extends EventLogDecoder {
* @returns {Object}
*/
decode(abiModel, response) {
return super.decode(abiModel.getEventBySignature(response.topics[0]), response);
let abiItemModel = abiModel.getEventBySignature(response.topics[0]);

if (abiItemModel) {
return super.decode(abiItemModel, response);
}

return response;
}
}

0 comments on commit 4b174ed

Please sign in to comment.