diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-09 18:21:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-09 18:21:32 +0800 |
commit | ecdc0636d8464c2dd440d7ba57db5cba39a3da5f (patch) | |
tree | da60741407a298274db345a6ce8afccd95d296cc /packages/contract_templates | |
parent | 028184947feca7de420929f587eca9662b3bb1af (diff) | |
parent | ea12e34809225b11fc2a2f25b48995c093f3bf37 (diff) | |
download | dexon-sol-tools-ecdc0636d8464c2dd440d7ba57db5cba39a3da5f.tar dexon-sol-tools-ecdc0636d8464c2dd440d7ba57db5cba39a3da5f.tar.gz dexon-sol-tools-ecdc0636d8464c2dd440d7ba57db5cba39a3da5f.tar.bz2 dexon-sol-tools-ecdc0636d8464c2dd440d7ba57db5cba39a3da5f.tar.lz dexon-sol-tools-ecdc0636d8464c2dd440d7ba57db5cba39a3da5f.tar.xz dexon-sol-tools-ecdc0636d8464c2dd440d7ba57db5cba39a3da5f.tar.zst dexon-sol-tools-ecdc0636d8464c2dd440d7ba57db5cba39a3da5f.zip |
Merge pull request #841 from 0xProject/feature/v2-contract-wrappers-validation
Feature/v2 contract wrappers validation
Diffstat (limited to 'packages/contract_templates')
-rw-r--r-- | packages/contract_templates/contract.handlebars | 1 | ||||
-rw-r--r-- | packages/contract_templates/partials/callAsync.handlebars | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/packages/contract_templates/contract.handlebars b/packages/contract_templates/contract.handlebars index d0f74a2bc..0810c4d90 100644 --- a/packages/contract_templates/contract.handlebars +++ b/packages/contract_templates/contract.handlebars @@ -27,6 +27,7 @@ export enum {{contractName}}Events { {{/each}} {{/if}} +/* istanbul ignore next */ // tslint:disable:no-parameter-reassignment // tslint:disable-next-line:class-name export class {{contractName}}Contract extends BaseContract { diff --git a/packages/contract_templates/partials/callAsync.handlebars b/packages/contract_templates/partials/callAsync.handlebars index 35fbe3c85..fcaae57c6 100644 --- a/packages/contract_templates/partials/callAsync.handlebars +++ b/packages/contract_templates/partials/callAsync.handlebars @@ -1,4 +1,3 @@ -{{#hasReturnValue}} async callAsync( {{> typed_params inputs=inputs}} callData: Partial<CallData> = {}, @@ -27,4 +26,3 @@ async callAsync( resultArray = BaseContract._formatABIDataItemList(outputAbi, resultArray, BaseContract._bnToBigNumber.bind(this)); return resultArray{{#singleReturnValue}}[0]{{/singleReturnValue}}; }, -{{/hasReturnValue}} |