aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers/ether_token_wrapper.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-09-05 00:14:48 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-09-05 00:14:48 +0800
commit1ad395cf86b2006c09bdae814607c2baf9790b91 (patch)
treed05ed1febd8979b7967a42faaed45c3dd10356dd /src/contract_wrappers/ether_token_wrapper.ts
parent1c2d4cbb1af9a5d4442857def622dc8068086953 (diff)
downloaddexon-0x-contracts-1ad395cf86b2006c09bdae814607c2baf9790b91.tar
dexon-0x-contracts-1ad395cf86b2006c09bdae814607c2baf9790b91.tar.gz
dexon-0x-contracts-1ad395cf86b2006c09bdae814607c2baf9790b91.tar.bz2
dexon-0x-contracts-1ad395cf86b2006c09bdae814607c2baf9790b91.tar.lz
dexon-0x-contracts-1ad395cf86b2006c09bdae814607c2baf9790b91.tar.xz
dexon-0x-contracts-1ad395cf86b2006c09bdae814607c2baf9790b91.tar.zst
dexon-0x-contracts-1ad395cf86b2006c09bdae814607c2baf9790b91.zip
Make the functions immidiately return txHash instead of awaiting for a transaction to be mined
Diffstat (limited to 'src/contract_wrappers/ether_token_wrapper.ts')
-rw-r--r--src/contract_wrappers/ether_token_wrapper.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/contract_wrappers/ether_token_wrapper.ts b/src/contract_wrappers/ether_token_wrapper.ts
index 3c282510f..a2486b15e 100644
--- a/src/contract_wrappers/ether_token_wrapper.ts
+++ b/src/contract_wrappers/ether_token_wrapper.ts
@@ -71,7 +71,9 @@ export class EtherTokenWrapper extends ContractWrapper {
if (!_.isUndefined(this._etherTokenContractIfExists)) {
return this._etherTokenContractIfExists;
}
- const contractInstance = await this._instantiateContractIfExistsAsync((EtherTokenArtifacts as any));
+ const contractInstance = await this._instantiateContractIfExistsAsync<EtherTokenContract>(
+ EtherTokenArtifacts as any as Artifact,
+ );
this._etherTokenContractIfExists = contractInstance as EtherTokenContract;
return this._etherTokenContractIfExists;
}