From a10e466fedaf1d291d24931f1743bb6becd101db Mon Sep 17 00:00:00 2001 From: Amir Bandeali Date: Fri, 20 Apr 2018 13:39:29 -0700 Subject: Fix getABIEncodedTransactionData in contract templates --- packages/contract_templates/partials/tx.handlebars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/contract_templates/partials/tx.handlebars') diff --git a/packages/contract_templates/partials/tx.handlebars b/packages/contract_templates/partials/tx.handlebars index 22fe0c597..1bdf80c42 100644 --- a/packages/contract_templates/partials/tx.handlebars +++ b/packages/contract_templates/partials/tx.handlebars @@ -52,7 +52,7 @@ public {{this.tsName}} = { const self = this as any as {{contractName}}Contract; const inputAbi = self._lookupAbi('{{this.functionSignature}}').inputs; [{{> params inputs=inputs}}] = BaseContract._formatABIDataItemList(inputAbi, [{{> params inputs=inputs}}], BaseContract._bigNumberToString.bind(self)); - const abiEncodedTransactionData = self._lookupEthersInterface('{{this.name}}').functions.{{this.name}}( + const abiEncodedTransactionData = self._lookupEthersInterface('{{this.functionSignature}}').functions.{{this.name}}( {{> params inputs=inputs}} ).data; return abiEncodedTransactionData; -- cgit