aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
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';