aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers/contract_wrapper.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-09-19 20:53:12 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-09-19 20:53:12 +0800
commit66db021900cf4ac824635512052afb2bddb0299c (patch)
tree167fec652823cdefa9c08eab01327a6f2c167e59 /src/contract_wrappers/contract_wrapper.ts
parente7af0eb20c108eae1c0e753d1079c2db3c13a583 (diff)
downloaddexon-sol-tools-66db021900cf4ac824635512052afb2bddb0299c.tar
dexon-sol-tools-66db021900cf4ac824635512052afb2bddb0299c.tar.gz
dexon-sol-tools-66db021900cf4ac824635512052afb2bddb0299c.tar.bz2
dexon-sol-tools-66db021900cf4ac824635512052afb2bddb0299c.tar.lz
dexon-sol-tools-66db021900cf4ac824635512052afb2bddb0299c.tar.xz
dexon-sol-tools-66db021900cf4ac824635512052afb2bddb0299c.tar.zst
dexon-sol-tools-66db021900cf4ac824635512052afb2bddb0299c.zip
Postfix variable names with 'ifExists'
Diffstat (limited to 'src/contract_wrappers/contract_wrapper.ts')
-rw-r--r--src/contract_wrappers/contract_wrapper.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/contract_wrappers/contract_wrapper.ts b/src/contract_wrappers/contract_wrapper.ts
index 4e3fb5029..2a55b53d9 100644
--- a/src/contract_wrappers/contract_wrapper.ts
+++ b/src/contract_wrappers/contract_wrapper.ts
@@ -10,9 +10,10 @@ export class ContractWrapper {
this._web3Wrapper = web3Wrapper;
}
protected async _instantiateContractIfExistsAsync<A extends Web3.ContractInstance>(artifact: Artifact,
- address?: string): Promise<A> {
+ addressIfExists?: string,
+ ): Promise<A> {
const contractInstance =
- await this._web3Wrapper.getContractInstanceFromArtifactAsync<A>(artifact, address);
+ await this._web3Wrapper.getContractInstanceFromArtifactAsync<A>(artifact, addressIfExists);
return contractInstance;
}
}