Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Commit

Permalink
Incomplete commit reverted (setupTestEnvironment.js)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkonst committed Nov 4, 2020
1 parent ee15d99 commit c2fcdd3
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions packages/protocol/test/helper/setupTestEnvironment.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,31 +347,6 @@ async function deployTestSTKSTF(buidlerRuntime, deployer = '') {
);
}

/**
* @param {ExtendedTestBRE} buidlerRuntime
* @param {string} contractName
* @param {any} args Constructor arguments
*/
async function deployContract(buidlerRuntime, contractName, args = [], opts = {}) {
const { deployments: { deploy }, usrNs: { roles: { deployer: defaultDeployer }}, web3 } = buidlerRuntime;
const options = Object.assign({ from: defaultDeployer, fieldsToCompare: [ 'data', 'from' ], args }, opts);
const { abi, address } = await deploy(contractName, options);
return new web3.eth.Contract(abi, address);
}

/*
const { deployments: { getArtifact }, usrNs: { roles: { deployer: defaultDeployer }}, web3 } = buidlerRuntime;
const { abi, bytecode } = await getArtifact('ICT');
const instance = new web3.eth.Contract(abi);
return (await instance
// bytecode linking is unneeded for this contract
.deploy({ data: bytecode, arguments: [ assetRegistry, dataRegistry, marketObjectCode, owner ]})
.send({ from: deployer || defaultDeployer })
);
*/



function parseToContractTerms(contract, terms) {
return require('./ACTUS/parser').parseTermsFromObject(contract, terms);
}
Expand Down

0 comments on commit c2fcdd3

Please sign in to comment.