diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-04-10 11:02:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-10 11:02:55 +0800 |
commit | 70d403e6f8c56bc70e6d3471a770b9bbff5d72e7 (patch) | |
tree | 2ab49214ca5f1aef196d1899de8091908feabb82 /packages/contract_templates/partials/callAsync.handlebars | |
parent | 073bf738ddb271b6b4158798baf4cac3cb0608e9 (diff) | |
parent | eecf09f51564df4f63139f26e65efa1102a9958d (diff) | |
download | dexon-sol-tools-70d403e6f8c56bc70e6d3471a770b9bbff5d72e7.tar dexon-sol-tools-70d403e6f8c56bc70e6d3471a770b9bbff5d72e7.tar.gz dexon-sol-tools-70d403e6f8c56bc70e6d3471a770b9bbff5d72e7.tar.bz2 dexon-sol-tools-70d403e6f8c56bc70e6d3471a770b9bbff5d72e7.tar.lz dexon-sol-tools-70d403e6f8c56bc70e6d3471a770b9bbff5d72e7.tar.xz dexon-sol-tools-70d403e6f8c56bc70e6d3471a770b9bbff5d72e7.tar.zst dexon-sol-tools-70d403e6f8c56bc70e6d3471a770b9bbff5d72e7.zip |
Merge pull request #493 from hysz/features/deployer/multipleCodebaseSupport
Deployer: Support for External Codebases + Overloaded Function Names
Diffstat (limited to 'packages/contract_templates/partials/callAsync.handlebars')
-rw-r--r-- | packages/contract_templates/partials/callAsync.handlebars | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contract_templates/partials/callAsync.handlebars b/packages/contract_templates/partials/callAsync.handlebars index 8de69203e..a6f4abdf2 100644 --- a/packages/contract_templates/partials/callAsync.handlebars +++ b/packages/contract_templates/partials/callAsync.handlebars @@ -5,9 +5,9 @@ async callAsync( defaultBlock?: BlockParam, ): Promise<{{> return_type outputs=outputs}}> { const self = this as any as {{contractName}}Contract; - const inputAbi = (_.find(self.abi, {name: '{{this.name}}'}) as MethodAbi).inputs; + const inputAbi = self._lookupAbi('{{this.functionSignature}}').inputs; [{{> params inputs=inputs}}] = BaseContract._formatABIDataItemList(inputAbi, [{{> params inputs=inputs}}], BaseContract._bigNumberToString.bind(self)); - const encodedData = self._ethersInterface.functions.{{this.name}}( + const encodedData = self._lookupEthersInterface('{{this.functionSignature}}').functions.{{this.name}}( {{> params inputs=inputs}} ).data; const callDataWithDefaults = await self._applyDefaultsToTxDataAsync( |