From 6cda67df101feab64abf43eeb4c6263ed103528c Mon Sep 17 00:00:00 2001 From: Amir Bandeali Date: Mon, 5 Feb 2018 15:37:02 -0800 Subject: Update compile command and run prettier --- packages/abi-gen/src/index.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'packages/abi-gen/src/index.ts') diff --git a/packages/abi-gen/src/index.ts b/packages/abi-gen/src/index.ts index 85cc67daf..b6aaa03ca 100644 --- a/packages/abi-gen/src/index.ts +++ b/packages/abi-gen/src/index.ts @@ -47,7 +47,6 @@ const args = yargs describe: 'ID of the network where contract ABIs are nested in artifacts', type: 'number', default: DEFAULT_NETWORK_ID, - }) .example( "$0 --abis 'src/artifacts/**/*.json' --out 'src/contracts/generated/' --partials 'src/templates/partials/**/*.handlebars' --template 'src/templates/contract.handlebars'", @@ -96,11 +95,11 @@ for (const abiFileName of abiFileNames) { const parsedContent = JSON.parse(namedContent.content); let ABI; if (_.isArray(parsedContent)) { - ABI = parsedContent; // ABI file + ABI = parsedContent; // ABI file } else if (!_.isUndefined(parsedContent.abi)) { - ABI = parsedContent.abi; // Truffle artifact + ABI = parsedContent.abi; // Truffle artifact } else if (!_.isUndefined(parsedContent.networks) && !_.isUndefined(parsedContent.networks[args.networkId])) { - ABI = parsedContent.networks[args.networkId]; // 0x contracts package artifact + ABI = parsedContent.networks[args.networkId]; // 0x contracts package artifact } if (_.isUndefined(ABI)) { utils.log(`${chalk.red(`ABI not found in ${abiFileName}.`)}`); -- cgit v1.2.3