diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-05-10 22:57:51 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-05-10 23:56:57 +0800 |
commit | 2e1c2d9dfeca4439435fdf1ed58504142963585a (patch) | |
tree | 3eb20636ea8531f3eade2279e66f1ef4a92152b4 /packages/contract_templates | |
parent | f854f3ee2bd74bbb61ed465099168b4d391f92c8 (diff) | |
download | dexon-sol-tools-2e1c2d9dfeca4439435fdf1ed58504142963585a.tar.gz dexon-sol-tools-2e1c2d9dfeca4439435fdf1ed58504142963585a.tar.zst dexon-sol-tools-2e1c2d9dfeca4439435fdf1ed58504142963585a.zip |
Fix templates
Diffstat (limited to 'packages/contract_templates')
-rw-r--r-- | packages/contract_templates/partials/callAsync.handlebars | 2 | ||||
-rw-r--r-- | packages/contract_templates/partials/tx.handlebars | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/contract_templates/partials/callAsync.handlebars b/packages/contract_templates/partials/callAsync.handlebars index 904936173..71c43eb18 100644 --- a/packages/contract_templates/partials/callAsync.handlebars +++ b/packages/contract_templates/partials/callAsync.handlebars @@ -16,7 +16,7 @@ async callAsync( { data: encodedData, }, - this._web3Wrapper.getContractDefaults(), + self._web3Wrapper.getContractDefaults(), ) const rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); let resultArray = ethersFunction.parse(rawCallResult); diff --git a/packages/contract_templates/partials/tx.handlebars b/packages/contract_templates/partials/tx.handlebars index f72078a4e..23bafd869 100644 --- a/packages/contract_templates/partials/tx.handlebars +++ b/packages/contract_templates/partials/tx.handlebars @@ -19,7 +19,7 @@ public {{this.tsName}} = { ...txData, data: encodedData, }, - this._web3Wrapper.getContractDefaults(), + self._web3Wrapper.getContractDefaults(), self.{{this.tsName}}.estimateGasAsync.bind( self, {{> params inputs=inputs}} @@ -43,7 +43,7 @@ public {{this.tsName}} = { ...txData, data: encodedData, }, - this._web3Wrapper.getContractDefaults(), + self._web3Wrapper.getContractDefaults(), ); const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); return gas; |