Skip to content

Commit

Permalink
eslint executed
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Furter committed Feb 6, 2019
1 parent 72de726 commit 43ff987
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/web3-eth-abi/src/AbiCoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,14 +296,16 @@ export default class AbiCoder {

const nonIndexedData = data;

const notIndexedParams = nonIndexedData ? this.decodeParameters(notIndexedInputs.filter(Boolean), nonIndexedData) : [];
const notIndexedParams = nonIndexedData
? this.decodeParameters(notIndexedInputs.filter(Boolean), nonIndexedData)
: [];

let notIndexedOffset = 0;
const returnValues = {};

inputs.forEach((res, i) => {
if (res.indexed) notIndexedOffset++;

returnValues[i] = res.type === 'string' ? '' : null;

if (!res.indexed && typeof notIndexedParams[i - notIndexedOffset] !== 'undefined') {
Expand Down

0 comments on commit 43ff987

Please sign in to comment.