diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-02-07 19:23:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-07 19:23:00 +0800 |
commit | 7e19c944b91f573bb026ca3a916cd4e4b9169a9e (patch) | |
tree | 252302871a01eee80ae64966ed72dc82b6eda1aa /packages/sol-compiler/src/utils | |
parent | 2a344e26cc51fa41a9df3535b625b8609dfc167e (diff) | |
parent | fd4d3cff880e9131d55a4e534c17289db5f72b6b (diff) | |
download | dexon-0x-contracts-7e19c944b91f573bb026ca3a916cd4e4b9169a9e.tar dexon-0x-contracts-7e19c944b91f573bb026ca3a916cd4e4b9169a9e.tar.gz dexon-0x-contracts-7e19c944b91f573bb026ca3a916cd4e4b9169a9e.tar.bz2 dexon-0x-contracts-7e19c944b91f573bb026ca3a916cd4e4b9169a9e.tar.lz dexon-0x-contracts-7e19c944b91f573bb026ca3a916cd4e4b9169a9e.tar.xz dexon-0x-contracts-7e19c944b91f573bb026ca3a916cd4e4b9169a9e.tar.zst dexon-0x-contracts-7e19c944b91f573bb026ca3a916cd4e4b9169a9e.zip |
Merge pull request #1575 from 0xProject/feature/contracts-gen
Contracts generator
Diffstat (limited to 'packages/sol-compiler/src/utils')
-rw-r--r-- | packages/sol-compiler/src/utils/compiler.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/sol-compiler/src/utils/compiler.ts b/packages/sol-compiler/src/utils/compiler.ts index c75f76dac..dffd07b1d 100644 --- a/packages/sol-compiler/src/utils/compiler.ts +++ b/packages/sol-compiler/src/utils/compiler.ts @@ -26,7 +26,10 @@ export async function getContractArtifactIfExistsAsync( contractName: string, ): Promise<ContractArtifact | void> { let contractArtifact; - const currentArtifactPath = `${artifactsDir}/${contractName}.json`; + const currentArtifactPath = `${artifactsDir}/${path.basename( + contractName, + constants.SOLIDITY_FILE_EXTENSION, + )}.json`; try { const opts = { encoding: 'utf8', |