diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-12-24 13:02:55 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2019-01-15 02:49:44 +0800 |
commit | 33f340522699322b0a0d76ffb5c4ebef3351c53a (patch) | |
tree | 93d790b91190a0eb3bf9380a3238423c2333b0f8 /packages/abi-gen-templates/partials/callAsync.handlebars | |
parent | 86caa4a0bb82e3ba7d362cca9b75565bf8944952 (diff) | |
download | dexon-sol-tools-33f340522699322b0a0d76ffb5c4ebef3351c53a.tar dexon-sol-tools-33f340522699322b0a0d76ffb5c4ebef3351c53a.tar.gz dexon-sol-tools-33f340522699322b0a0d76ffb5c4ebef3351c53a.tar.bz2 dexon-sol-tools-33f340522699322b0a0d76ffb5c4ebef3351c53a.tar.lz dexon-sol-tools-33f340522699322b0a0d76ffb5c4ebef3351c53a.tar.xz dexon-sol-tools-33f340522699322b0a0d76ffb5c4ebef3351c53a.tar.zst dexon-sol-tools-33f340522699322b0a0d76ffb5c4ebef3351c53a.zip |
`let` -> `const` in callAsync
Diffstat (limited to 'packages/abi-gen-templates/partials/callAsync.handlebars')
-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}}; }, |