diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-05-07 20:46:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-07 20:46:28 +0800 |
commit | a9c5488620148c7ddc576bf99e02c25397230906 (patch) | |
tree | 3d86a42696ffb26c361d46dd54b6c3bce296ed09 /packages/abi-gen/src/index.ts | |
parent | 69a6166b6a1d39afc24b8dd950ec5d8539a03420 (diff) | |
parent | 906af858a5b013927e06ebafdad12d13ba674932 (diff) | |
download | dexon-sol-tools-a9c5488620148c7ddc576bf99e02c25397230906.tar dexon-sol-tools-a9c5488620148c7ddc576bf99e02c25397230906.tar.gz dexon-sol-tools-a9c5488620148c7ddc576bf99e02c25397230906.tar.bz2 dexon-sol-tools-a9c5488620148c7ddc576bf99e02c25397230906.tar.lz dexon-sol-tools-a9c5488620148c7ddc576bf99e02c25397230906.tar.xz dexon-sol-tools-a9c5488620148c7ddc576bf99e02c25397230906.tar.zst dexon-sol-tools-a9c5488620148c7ddc576bf99e02c25397230906.zip |
Merge pull request #537 from 0xProject/feature/artifacts-v2
Implement the new artifacts format
Diffstat (limited to 'packages/abi-gen/src/index.ts')
-rw-r--r-- | packages/abi-gen/src/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/abi-gen/src/index.ts b/packages/abi-gen/src/index.ts index ecef33b16..7125171b9 100644 --- a/packages/abi-gen/src/index.ts +++ b/packages/abi-gen/src/index.ts @@ -108,8 +108,8 @@ for (const abiFileName of abiFileNames) { ABI = parsedContent; // ABI file } else if (!_.isUndefined(parsedContent.abi)) { ABI = parsedContent.abi; // Truffle artifact - } else if (!_.isUndefined(parsedContent.networks) && !_.isUndefined(parsedContent.networks[args.networkId])) { - ABI = parsedContent.networks[args.networkId].abi; // 0x contracts package artifact + } else if (!_.isUndefined(parsedContent.compilerOutput.abi)) { + ABI = parsedContent.compilerOutput.abi; // 0x artifact } if (_.isUndefined(ABI)) { logUtils.log(`${chalk.red(`ABI not found in ${abiFileName}.`)}`); |