From 30bce544aa430472dfd2c42f2a1d63b0a9c7254e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20M=C3=BCller?= Date: Fri, 25 Oct 2024 11:17:13 -0700 Subject: [PATCH] Fix counter script: get count instead of non-existent greeting --- 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() +}