From 2abc5a88c551956c704848f8e2c2d024d5cb81a9 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Tue, 5 Dec 2017 17:07:22 +0300 Subject: Use lodash's map --- packages/typed-contracts/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/typed-contracts/src/index.ts b/packages/typed-contracts/src/index.ts index 35f2ba2d1..5f925e079 100644 --- a/packages/typed-contracts/src/index.ts +++ b/packages/typed-contracts/src/index.ts @@ -67,8 +67,8 @@ for (const abiFileName of abiFileNames) { parsedContent : // ABI file parsedContent.abi; // Truffle contracts file const methodAbis = ABI.filter((abi: Web3.AbiDefinition) => abi.type === 'function') as Web3.MethodAbi[]; - methodAbis.map(methodAbi => { - methodAbi.inputs.map(input => { + _.map(methodAbis, methodAbi => { + _.map(methodAbi.inputs, input => { if (_.isEmpty(input.name)) { // Auto-generated getters don't have parameter names input.name = 'index'; -- cgit