From fd928b928b5d4330c0371847f726ab1d9435ff1d Mon Sep 17 00:00:00 2001 From: Mitch Pierias Date: Sun, 5 May 2019 11:11:20 +1000 Subject: [PATCH] Updated to support user deinfed directories --- src/contracts/contractDeployer.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/contracts/contractDeployer.ts b/src/contracts/contractDeployer.ts index 310dd92..22db6fe 100644 --- a/src/contracts/contractDeployer.ts +++ b/src/contracts/contractDeployer.ts @@ -9,6 +9,7 @@ const readFile = promisify(readFileCallback); import { Contract } from './contract'; import { Account, AccountManager } from '../accounts'; import { EOSManager } from '../eosManager'; +import { ConfigManager } from '../configManager'; /** * Provides a set of methods to manage contract deployment @@ -36,8 +37,8 @@ export class ContractDeployer { textDecoder: EOSManager.api.textDecoder, }); // Construct resource paths - const abiPath = path.join('.lamington', 'compiled_contracts', `${contractIdentifier}.abi`); - const wasmPath = path.join('.lamington', 'compiled_contracts', `${contractIdentifier}.wasm`); + const abiPath = path.join(ConfigManager.outDir, `${contractIdentifier}.abi`); + const wasmPath = path.join(ConfigManager.outDir, `${contractIdentifier}.wasm`); // Read resources files for paths let abi = JSON.parse(await readFile(abiPath, 'utf8')); const wasm = await readFile(wasmPath);