aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/contract_templates/partials/return_type.handlebars
diff options
context:
space:
mode:
Diffstat (limited to 'packages/contracts/contract_templates/partials/return_type.handlebars')
-rw-r--r--packages/contracts/contract_templates/partials/return_type.handlebars4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/contracts/contract_templates/partials/return_type.handlebars b/packages/contracts/contract_templates/partials/return_type.handlebars
index 383961a40..40a5dd8b0 100644
--- a/packages/contracts/contract_templates/partials/return_type.handlebars
+++ b/packages/contracts/contract_templates/partials/return_type.handlebars
@@ -1,6 +1,10 @@
+{{#if outputs.length}}
{{#singleReturnValue}}
{{#returnType outputs.0.type}}{{/returnType}}
{{/singleReturnValue}}
{{^singleReturnValue}}
[{{#each outputs}}{{#returnType type}}{{/returnType}}{{#unless @last}}, {{/unless}}{{/each}}]
{{/singleReturnValue}}
+{{else}}
+void
+{{/if}}