aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-04-21 04:39:29 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-04-21 04:54:33 +0800
commita10e466fedaf1d291d24931f1743bb6becd101db (patch)
tree4b301a5b3caffe8ada61af312620a0557feb7ea4
parent35bb010c3542f4c324a8cea9d8437ff63969b1b1 (diff)
downloaddexon-sol-tools-a10e466fedaf1d291d24931f1743bb6becd101db.tar.gz
dexon-sol-tools-a10e466fedaf1d291d24931f1743bb6becd101db.tar.zst
dexon-sol-tools-a10e466fedaf1d291d24931f1743bb6becd101db.zip
Fix getABIEncodedTransactionData in contract templates
-rw-r--r--packages/contract_templates/partials/tx.handlebars2
1 files changed, 1 insertions, 1 deletions
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;