Skip to content

Commit

Permalink
Updated to support user deinfed directories
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchPierias committed May 5, 2019
1 parent c005d48 commit fd928b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/contracts/contractDeployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit fd928b9

Please sign in to comment.