diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-28 16:26:56 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-28 16:26:56 +0800 |
commit | 0b09cc36b06f1c51eac95fc6ad851a14800658b2 (patch) | |
tree | 7fbd62c5170806c67e285301dba1215bd5bd0bc0 /packages/contract_templates/partials/callAsync.handlebars | |
parent | d72b7299c66ea6d63eb14595b06456c02b2ad99b (diff) | |
download | dexon-sol-tools-0b09cc36b06f1c51eac95fc6ad851a14800658b2.tar dexon-sol-tools-0b09cc36b06f1c51eac95fc6ad851a14800658b2.tar.gz dexon-sol-tools-0b09cc36b06f1c51eac95fc6ad851a14800658b2.tar.bz2 dexon-sol-tools-0b09cc36b06f1c51eac95fc6ad851a14800658b2.tar.lz dexon-sol-tools-0b09cc36b06f1c51eac95fc6ad851a14800658b2.tar.xz dexon-sol-tools-0b09cc36b06f1c51eac95fc6ad851a14800658b2.tar.zst dexon-sol-tools-0b09cc36b06f1c51eac95fc6ad851a14800658b2.zip |
Remove redundant cast
Diffstat (limited to 'packages/contract_templates/partials/callAsync.handlebars')
-rw-r--r-- | packages/contract_templates/partials/callAsync.handlebars | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/contract_templates/partials/callAsync.handlebars b/packages/contract_templates/partials/callAsync.handlebars index 2d9028ad5..e3fc2bdf9 100644 --- a/packages/contract_templates/partials/callAsync.handlebars +++ b/packages/contract_templates/partials/callAsync.handlebars @@ -16,7 +16,7 @@ async callAsync( } ) const rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - const outputAbi = (_.find(self.abi, {name: '{{this.name}}'}) as MethodAbi).outputs as DataItem[]; + const outputAbi = (_.find(self.abi, {name: '{{this.name}}'}) as MethodAbi).outputs; const outputParamsTypes = _.map(outputAbi, 'type'); let resultArray = ethersContracts.Interface.decodeParams(outputParamsTypes, rawCallResult) as any; resultArray = BaseContract._transformABIData(outputAbi, resultArray, BaseContract._lowercaseAddress.bind(this)); |