aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src/contract_wrappers/generated
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-01-31 08:26:42 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-01-31 08:26:42 +0800
commit7cc4a8f5cebb41ee5b9a37a1732d7f2af5d16d4a (patch)
treec29207060123584f2784705e3527b962f45565de /packages/0x.js/src/contract_wrappers/generated
parent4d0ff0dce4bdef031f19a2ec8891ae58f98616ee (diff)
downloaddexon-0x-contracts-7cc4a8f5cebb41ee5b9a37a1732d7f2af5d16d4a.tar.gz
dexon-0x-contracts-7cc4a8f5cebb41ee5b9a37a1732d7f2af5d16d4a.tar.zst
dexon-0x-contracts-7cc4a8f5cebb41ee5b9a37a1732d7f2af5d16d4a.zip
Fix lint errors
Diffstat (limited to 'packages/0x.js/src/contract_wrappers/generated')
-rw-r--r--packages/0x.js/src/contract_wrappers/generated/base_contract.ts12
1 files changed, 6 insertions, 6 deletions
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 28a7e2f52..d8fac7eea 100644
--- a/packages/0x.js/src/contract_wrappers/generated/base_contract.ts
+++ b/packages/0x.js/src/contract_wrappers/generated/base_contract.ts
@@ -3,9 +3,9 @@ import * as _ from 'lodash';
import * as Web3 from 'web3';
export class BaseContract {
- protected web3ContractInstance: Web3.ContractInstance;
- protected defaults: Partial<TxData>;
- protected async applyDefaultsToTxDataAsync<T extends TxData|TxDataPayable>(
+ protected _web3ContractInstance: Web3.ContractInstance;
+ protected _defaults: Partial<TxData>;
+ protected async _applyDefaultsToTxDataAsync<T extends TxData|TxDataPayable>(
txData: T,
estimateGasAsync?: (txData: T) => Promise<number>,
): Promise<TxData> {
@@ -15,7 +15,7 @@ export class BaseContract {
// 3. Gas estimate calculation + safety margin
const removeUndefinedProperties = _.pickBy;
const txDataWithDefaults = {
- ...removeUndefinedProperties(this.defaults),
+ ...removeUndefinedProperties(this._defaults),
...removeUndefinedProperties(txData as any),
// HACK: TS can't prove that T is spreadable.
// Awaiting https://github.com/Microsoft/TypeScript/pull/13288 to be merged
@@ -27,7 +27,7 @@ export class BaseContract {
return txDataWithDefaults;
}
constructor(web3ContractInstance: Web3.ContractInstance, defaults: Partial<TxData>) {
- this.web3ContractInstance = web3ContractInstance;
- this.defaults = defaults;
+ this._web3ContractInstance = web3ContractInstance;
+ this._defaults = defaults;
}
}