diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-05-10 21:20:00 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-05-10 23:47:38 +0800 |
commit | f854f3ee2bd74bbb61ed465099168b4d391f92c8 (patch) | |
tree | d0d126e9041198dfb8d27a48a251167bf4fd4e44 /packages/base-contract/src | |
parent | 1055ca6d4435c0a9b325586e4c7af3458eff273a (diff) | |
download | dexon-sol-tools-f854f3ee2bd74bbb61ed465099168b4d391f92c8.tar dexon-sol-tools-f854f3ee2bd74bbb61ed465099168b4d391f92c8.tar.gz dexon-sol-tools-f854f3ee2bd74bbb61ed465099168b4d391f92c8.tar.bz2 dexon-sol-tools-f854f3ee2bd74bbb61ed465099168b4d391f92c8.tar.lz dexon-sol-tools-f854f3ee2bd74bbb61ed465099168b4d391f92c8.tar.xz dexon-sol-tools-f854f3ee2bd74bbb61ed465099168b4d391f92c8.tar.zst dexon-sol-tools-f854f3ee2bd74bbb61ed465099168b4d391f92c8.zip |
Remove unused deployer docs configs
Diffstat (limited to 'packages/base-contract/src')
-rw-r--r-- | packages/base-contract/src/index.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/base-contract/src/index.ts b/packages/base-contract/src/index.ts index 8da3c2e71..f9298f413 100644 --- a/packages/base-contract/src/index.ts +++ b/packages/base-contract/src/index.ts @@ -64,7 +64,7 @@ export class BaseContract { } protected static async _applyDefaultsToTxDataAsync<T extends Partial<TxData | TxDataPayable>>( txData: T, - defaults: Partial<TxData>, + txDefaults: Partial<TxData>, estimateGasAsync?: (txData: T) => Promise<number>, ): Promise<TxData> { // Gas amount sourced with the following priorities: @@ -73,7 +73,7 @@ export class BaseContract { // 3. Gas estimate calculation + safety margin const removeUndefinedProperties = _.pickBy; const txDataWithDefaults: TxData = { - ...removeUndefinedProperties(defaults), + ...removeUndefinedProperties(txDefaults), ...removeUndefinedProperties(txData as any), // HACK: TS can't prove that T is spreadable. // Awaiting https://github.com/Microsoft/TypeScript/pull/13288 to be merged @@ -109,10 +109,10 @@ export class BaseContract { abi: ContractAbi, address: string, provider: Provider, - defaults?: Partial<TxData>, + txDefaults?: Partial<TxData>, ) { this.contractName = contractName; - this._web3Wrapper = new Web3Wrapper(provider, defaults); + this._web3Wrapper = new Web3Wrapper(provider, txDefaults); this.abi = abi; this.address = address; const methodAbis = this.abi.filter( |