From 480428fca7db7dfd9b28123ce7ca16af66f3f025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20M=C3=BCller?= Date: Fri, 25 Oct 2024 11:34:17 -0700 Subject: [PATCH] Fix counter script: get count instead of non-existent greeting (#1802) --- internal/super/generator/templates/script_counter.cdc.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/super/generator/templates/script_counter.cdc.tmpl b/internal/super/generator/templates/script_counter.cdc.tmpl index c334a2aa2..7c006c30d 100644 --- a/internal/super/generator/templates/script_counter.cdc.tmpl +++ b/internal/super/generator/templates/script_counter.cdc.tmpl @@ -1,6 +1,6 @@ import "{{ .ContractName }}" access(all) -fun main(): String { - return {{ .ContractName }}.greeting -} \ No newline at end of file +fun main(): Int { + return {{ .ContractName }}.getCount() +}