aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-compiler/src/utils
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2019-02-07 19:23:00 +0800
committerGitHub <noreply@github.com>2019-02-07 19:23:00 +0800
commit7e19c944b91f573bb026ca3a916cd4e4b9169a9e (patch)
tree252302871a01eee80ae64966ed72dc82b6eda1aa /packages/sol-compiler/src/utils
parent2a344e26cc51fa41a9df3535b625b8609dfc167e (diff)
parentfd4d3cff880e9131d55a4e534c17289db5f72b6b (diff)
downloaddexon-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.ts5
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',