From d712dc47d97d3051e2938bf11b9088aba657b869 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Wed, 4 Jul 2018 18:11:50 +0200 Subject: Removee getContractFromAbi method since we no longer use it and do not recommend others use it --- packages/web3-wrapper/src/web3_wrapper.ts | 9 --------- 1 file changed, 9 deletions(-) (limited to 'packages/web3-wrapper') diff --git a/packages/web3-wrapper/src/web3_wrapper.ts b/packages/web3-wrapper/src/web3_wrapper.ts index e66c7073f..640d3eac9 100644 --- a/packages/web3-wrapper/src/web3_wrapper.ts +++ b/packages/web3-wrapper/src/web3_wrapper.ts @@ -388,15 +388,6 @@ export class Web3Wrapper { const formattedLogs = _.map(rawLogs, this._formatLog.bind(this)); return formattedLogs; } - /** - * Get a Web3 contract factory instance for a given ABI - * @param abi Smart contract ABI - * @returns Web3 contract factory which can create Web3 Contract instances from the supplied ABI - */ - public getContractFromAbi(abi: ContractAbi): Web3.Contract { - const web3Contract = this._web3.eth.contract(abi); - return web3Contract; - } /** * Calculate the estimated gas cost for a given transaction * @param txData Transaction data -- cgit v1.2.3