aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers/token_registry_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/token_registry_wrapper.ts
parente7af0eb20c108eae1c0e753d1079c2db3c13a583 (diff)
downloaddexon-0x-contracts-66db021900cf4ac824635512052afb2bddb0299c.tar
dexon-0x-contracts-66db021900cf4ac824635512052afb2bddb0299c.tar.gz
dexon-0x-contracts-66db021900cf4ac824635512052afb2bddb0299c.tar.bz2
dexon-0x-contracts-66db021900cf4ac824635512052afb2bddb0299c.tar.lz
dexon-0x-contracts-66db021900cf4ac824635512052afb2bddb0299c.tar.xz
dexon-0x-contracts-66db021900cf4ac824635512052afb2bddb0299c.tar.zst
dexon-0x-contracts-66db021900cf4ac824635512052afb2bddb0299c.zip
Postfix variable names with 'ifExists'
Diffstat (limited to 'src/contract_wrappers/token_registry_wrapper.ts')
-rw-r--r--src/contract_wrappers/token_registry_wrapper.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/contract_wrappers/token_registry_wrapper.ts b/src/contract_wrappers/token_registry_wrapper.ts
index fb0ab78f6..2cc5a9aa0 100644
--- a/src/contract_wrappers/token_registry_wrapper.ts
+++ b/src/contract_wrappers/token_registry_wrapper.ts
@@ -11,10 +11,10 @@ import {artifacts} from '../artifacts';
*/
export class TokenRegistryWrapper extends ContractWrapper {
private _tokenRegistryContractIfExists?: TokenRegistryContract;
- private _contractAddress?: string;
- constructor(web3Wrapper: Web3Wrapper, contractAddress?: string) {
+ private _contractAddressIfExists?: string;
+ constructor(web3Wrapper: Web3Wrapper, contractAddressIfExists?: string) {
super(web3Wrapper);
- this._contractAddress = contractAddress;
+ this._contractAddressIfExists = contractAddressIfExists;
}
/**
* Retrieves all the tokens currently listed in the Token Registry smart contract
@@ -114,7 +114,7 @@ export class TokenRegistryWrapper extends ContractWrapper {
return this._tokenRegistryContractIfExists;
}
const contractInstance = await this._instantiateContractIfExistsAsync<TokenRegistryContract>(
- artifacts.TokenRegistryArtifact, this._contractAddress,
+ artifacts.TokenRegistryArtifact, this._contractAddressIfExists,
);
this._tokenRegistryContractIfExists = contractInstance as TokenRegistryContract;
return this._tokenRegistryContractIfExists;