diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-05 22:07:22 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-05 22:07:22 +0800 |
commit | 2abc5a88c551956c704848f8e2c2d024d5cb81a9 (patch) | |
tree | 6f09d791906982fce58cda1317489009ca352339 /packages | |
parent | 4c0bc02c486e45a37d774516c645086626271cb5 (diff) | |
download | dexon-sol-tools-2abc5a88c551956c704848f8e2c2d024d5cb81a9.tar.gz dexon-sol-tools-2abc5a88c551956c704848f8e2c2d024d5cb81a9.tar.zst dexon-sol-tools-2abc5a88c551956c704848f8e2c2d024d5cb81a9.zip |
Use lodash's map
Diffstat (limited to 'packages')
-rw-r--r-- | packages/typed-contracts/src/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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'; |