diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-09-05 00:14:48 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-09-05 00:14:48 +0800 |
commit | 1ad395cf86b2006c09bdae814607c2baf9790b91 (patch) | |
tree | d05ed1febd8979b7967a42faaed45c3dd10356dd /src/contract_wrappers/token_transfer_proxy_wrapper.ts | |
parent | 1c2d4cbb1af9a5d4442857def622dc8068086953 (diff) | |
download | dexon-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/token_transfer_proxy_wrapper.ts')
-rw-r--r-- | src/contract_wrappers/token_transfer_proxy_wrapper.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/contract_wrappers/token_transfer_proxy_wrapper.ts b/src/contract_wrappers/token_transfer_proxy_wrapper.ts index da17d79ff..2b4b32961 100644 --- a/src/contract_wrappers/token_transfer_proxy_wrapper.ts +++ b/src/contract_wrappers/token_transfer_proxy_wrapper.ts @@ -44,7 +44,9 @@ export class TokenTransferProxyWrapper extends ContractWrapper { if (!_.isUndefined(this._tokenTransferProxyContractIfExists)) { return this._tokenTransferProxyContractIfExists; } - const contractInstance = await this._instantiateContractIfExistsAsync((TokenTransferProxyArtifacts as any)); + const contractInstance = await this._instantiateContractIfExistsAsync<TokenTransferProxyContract>( + TokenTransferProxyArtifacts as any as Artifact, + ); this._tokenTransferProxyContractIfExists = contractInstance as TokenTransferProxyContract; return this._tokenTransferProxyContractIfExists; } |