From 4e451479f8db6ef459f4d4c6f7935c20f9d6ea09 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Fri, 23 Feb 2018 14:56:05 -0800 Subject: Fix build --- .../0x.js/src/contract_wrappers/generated/base_contract.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'packages/0x.js/src') diff --git a/packages/0x.js/src/contract_wrappers/generated/base_contract.ts b/packages/0x.js/src/contract_wrappers/generated/base_contract.ts index a62c785bc..a465ddc38 100644 --- a/packages/0x.js/src/contract_wrappers/generated/base_contract.ts +++ b/packages/0x.js/src/contract_wrappers/generated/base_contract.ts @@ -7,8 +7,8 @@ import * as Web3 from 'web3'; export class BaseContract { protected _ethersInterface: ethersContracts.Interface; protected _web3Wrapper: Web3Wrapper; - protected _abi: Web3.ContractAbi; - protected _address: string; + public abi: Web3.ContractAbi; + public address: string; protected static _transformABIData( abis: Web3.DataItem[], values: any[], @@ -49,7 +49,7 @@ export class BaseContract { // 3. Gas estimate calculation + safety margin const removeUndefinedProperties = _.pickBy; const txDataWithDefaults = { - to: this._address, + to: this.address, ...removeUndefinedProperties(this._web3Wrapper.getContractDefaults()), ...removeUndefinedProperties(txData as any), // HACK: TS can't prove that T is spreadable. @@ -63,8 +63,8 @@ export class BaseContract { } constructor(web3Wrapper: Web3Wrapper, abi: Web3.ContractAbi, address: string) { this._web3Wrapper = web3Wrapper; - this._abi = abi; - this._address = address; + this.abi = abi; + this.address = address; this._ethersInterface = new ethersContracts.Interface(abi); } } -- cgit v1.2.3