aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-08-23 23:32:10 +0800
committerFabio Berger <me@fabioberger.com>2017-08-23 23:32:10 +0800
commitf7010dfa3a4bbd00ba1f08b1bed411c6a60008a4 (patch)
treeb1463dd08c613aefddbe0d53ee85ee2cbaf84cc6 /src/contract_wrappers
parent8ba3d608c3c7256379ad9de8c53ecb20460b642a (diff)
downloaddexon-sol-tools-f7010dfa3a4bbd00ba1f08b1bed411c6a60008a4.tar
dexon-sol-tools-f7010dfa3a4bbd00ba1f08b1bed411c6a60008a4.tar.gz
dexon-sol-tools-f7010dfa3a4bbd00ba1f08b1bed411c6a60008a4.tar.bz2
dexon-sol-tools-f7010dfa3a4bbd00ba1f08b1bed411c6a60008a4.tar.lz
dexon-sol-tools-f7010dfa3a4bbd00ba1f08b1bed411c6a60008a4.tar.xz
dexon-sol-tools-f7010dfa3a4bbd00ba1f08b1bed411c6a60008a4.tar.zst
dexon-sol-tools-f7010dfa3a4bbd00ba1f08b1bed411c6a60008a4.zip
Return variable instead of expression
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts3
-rw-r--r--src/contract_wrappers/token_transfer_proxy_wrapper.ts3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index d5e272c12..7994ee72f 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -623,7 +623,8 @@ export class ExchangeWrapper extends ContractWrapper {
*/
public async getContractAddressAsync(): Promise<string> {
const exchangeInstance = await this._getExchangeContractAsync();
- return exchangeInstance.address;
+ const exchangeAddress = exchangeInstance.address;
+ return exchangeAddress;
}
private async _invalidateContractInstancesAsync(): Promise<void> {
await this.stopWatchingAllEventsAsync();
diff --git a/src/contract_wrappers/token_transfer_proxy_wrapper.ts b/src/contract_wrappers/token_transfer_proxy_wrapper.ts
index 758c07f18..da17d79ff 100644
--- a/src/contract_wrappers/token_transfer_proxy_wrapper.ts
+++ b/src/contract_wrappers/token_transfer_proxy_wrapper.ts
@@ -34,7 +34,8 @@ export class TokenTransferProxyWrapper extends ContractWrapper {
*/
public async getContractAddressAsync(): Promise<string> {
const proxyInstance = await this._getTokenTransferProxyContractAsync();
- return proxyInstance.address;
+ const proxyAddress = proxyInstance.address;
+ return proxyAddress;
}
private _invalidateContractInstance(): void {
delete this._tokenTransferProxyContractIfExists;