aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-12-05 22:07:22 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-12-05 22:07:22 +0800
commit2abc5a88c551956c704848f8e2c2d024d5cb81a9 (patch)
tree6f09d791906982fce58cda1317489009ca352339 /packages
parent4c0bc02c486e45a37d774516c645086626271cb5 (diff)
downloaddexon-0x-contracts-2abc5a88c551956c704848f8e2c2d024d5cb81a9.tar.gz
dexon-0x-contracts-2abc5a88c551956c704848f8e2c2d024d5cb81a9.tar.zst
dexon-0x-contracts-2abc5a88c551956c704848f8e2c2d024d5cb81a9.zip
Use lodash's map
Diffstat (limited to 'packages')
-rw-r--r--packages/typed-contracts/src/index.ts4
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';