diff options
Diffstat (limited to 'packages/abi-gen-templates/partials')
-rw-r--r-- | packages/abi-gen-templates/partials/callAsync.handlebars | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/abi-gen-templates/partials/callAsync.handlebars b/packages/abi-gen-templates/partials/callAsync.handlebars index e978f577d..37b50307c 100644 --- a/packages/abi-gen-templates/partials/callAsync.handlebars +++ b/packages/abi-gen-templates/partials/callAsync.handlebars @@ -16,6 +16,6 @@ async callAsync( const rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); BaseContract._throwIfRevertWithReasonCallResult(rawCallResult); const abiEncoder = self._lookupAbiEncoder('{{this.functionSignature}}'); - let resultArray = abiEncoder.decodeReturnValuesAsArrayOrNull(rawCallResult); + const resultArray = abiEncoder.decodeReturnValuesAsArrayOrNull(rawCallResult); return resultArray{{#singleReturnValue}}[0]{{/singleReturnValue}}; }, |