aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-03-28 16:26:56 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-03-28 16:26:56 +0800
commit0b09cc36b06f1c51eac95fc6ad851a14800658b2 (patch)
tree7fbd62c5170806c67e285301dba1215bd5bd0bc0
parentd72b7299c66ea6d63eb14595b06456c02b2ad99b (diff)
downloaddexon-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
-rw-r--r--packages/contract_templates/partials/callAsync.handlebars2
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));