diff --git a/template_content/.algokit/generators/create_contract/smart_contracts/{% raw %}{{ contract_name }}{% endraw %}/contract.py.j2 b/template_content/.algokit/generators/create_contract/smart_contracts/{% raw %}{{ contract_name }}{% endraw %}/contract.py.j2 index 83b938b..ab5ac39 100644 --- a/template_content/.algokit/generators/create_contract/smart_contracts/{% raw %}{{ contract_name }}{% endraw %}/contract.py.j2 +++ b/template_content/.algokit/generators/create_contract/smart_contracts/{% raw %}{{ contract_name }}{% endraw %}/contract.py.j2 @@ -5,4 +5,4 @@ from puyapy.arc4 import String, abimethod class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract): @abimethod() def hello(self, name: String) -> String: - return String.encode(Bytes(b"Hello ") + name.decode()) + return String.encode(Bytes(b"Hello, ") + name.decode()) diff --git a/template_content/smart_contracts/{{ contract_name }}/contract.py.jinja b/template_content/smart_contracts/{{ contract_name }}/contract.py.jinja index 83b938b..ab5ac39 100644 --- a/template_content/smart_contracts/{{ contract_name }}/contract.py.jinja +++ b/template_content/smart_contracts/{{ contract_name }}/contract.py.jinja @@ -5,4 +5,4 @@ from puyapy.arc4 import String, abimethod class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract): @abimethod() def hello(self, name: String) -> String: - return String.encode(Bytes(b"Hello ") + name.decode()) + return String.encode(Bytes(b"Hello, ") + name.decode()) diff --git a/template_content/{% if use_typescript_jest %}tests{% endif %}/{% if use_typescript_jest %}{% include pathjoin('includes', 'contract_name_kebab.jinja') %}.spec.ts{% endif %}.jinja b/template_content/{% if use_typescript_jest %}tests{% endif %}/{% if use_typescript_jest %}{% include pathjoin('includes', 'contract_name_kebab.jinja') %}.spec.ts{% endif %}.jinja index 76a0630..25c4aa5 100644 --- a/template_content/{% if use_typescript_jest %}tests{% endif %}/{% if use_typescript_jest %}{% include pathjoin('includes', 'contract_name_kebab.jinja') %}.spec.ts{% endif %}.jinja +++ b/template_content/{% if use_typescript_jest %}tests{% endif %}/{% if use_typescript_jest %}{% include pathjoin('includes', 'contract_name_kebab.jinja') %}.spec.ts{% endif %}.jinja @@ -24,10 +24,8 @@ describe('{{ contract_name.split('_')|join(' ') }} contract', () => { algod, ) await client.deploy({ - allowDelete: true, - allowUpdate: true, - onSchemaBreak: 'replace', - onUpdate: 'update', + onSchemaBreak: 'append', + onUpdate: 'append', }) return { client } } diff --git a/tests_generated/test_smart_contract_generator_default_production_preset_python/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/contract.py.j2 b/tests_generated/test_smart_contract_generator_default_production_preset_python/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/contract.py.j2 index 83b938b..ab5ac39 100644 --- a/tests_generated/test_smart_contract_generator_default_production_preset_python/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/contract.py.j2 +++ b/tests_generated/test_smart_contract_generator_default_production_preset_python/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/contract.py.j2 @@ -5,4 +5,4 @@ from puyapy.arc4 import String, abimethod class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract): @abimethod() def hello(self, name: String) -> String: - return String.encode(Bytes(b"Hello ") + name.decode()) + return String.encode(Bytes(b"Hello, ") + name.decode()) diff --git a/tests_generated/test_smart_contract_generator_default_production_preset_python/smart_contracts/cool_contract/contract.py b/tests_generated/test_smart_contract_generator_default_production_preset_python/smart_contracts/cool_contract/contract.py index 76d1be4..8d74892 100644 --- a/tests_generated/test_smart_contract_generator_default_production_preset_python/smart_contracts/cool_contract/contract.py +++ b/tests_generated/test_smart_contract_generator_default_production_preset_python/smart_contracts/cool_contract/contract.py @@ -5,4 +5,4 @@ class CoolContract(ARC4Contract): @abimethod() def hello(self, name: String) -> String: - return String.encode(Bytes(b"Hello ") + name.decode()) + return String.encode(Bytes(b"Hello, ") + name.decode()) diff --git a/tests_generated/test_smart_contract_generator_default_production_preset_python/smart_contracts/hello_world/contract.py b/tests_generated/test_smart_contract_generator_default_production_preset_python/smart_contracts/hello_world/contract.py index 1b8fddb..586abbd 100644 --- a/tests_generated/test_smart_contract_generator_default_production_preset_python/smart_contracts/hello_world/contract.py +++ b/tests_generated/test_smart_contract_generator_default_production_preset_python/smart_contracts/hello_world/contract.py @@ -5,4 +5,4 @@ class HelloWorld(ARC4Contract): @abimethod() def hello(self, name: String) -> String: - return String.encode(Bytes(b"Hello ") + name.decode()) + return String.encode(Bytes(b"Hello, ") + name.decode()) diff --git a/tests_generated/test_smart_contract_generator_default_production_preset_typescript/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/contract.py.j2 b/tests_generated/test_smart_contract_generator_default_production_preset_typescript/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/contract.py.j2 index 83b938b..ab5ac39 100644 --- a/tests_generated/test_smart_contract_generator_default_production_preset_typescript/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/contract.py.j2 +++ b/tests_generated/test_smart_contract_generator_default_production_preset_typescript/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/contract.py.j2 @@ -5,4 +5,4 @@ from puyapy.arc4 import String, abimethod class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract): @abimethod() def hello(self, name: String) -> String: - return String.encode(Bytes(b"Hello ") + name.decode()) + return String.encode(Bytes(b"Hello, ") + name.decode()) diff --git a/tests_generated/test_smart_contract_generator_default_production_preset_typescript/smart_contracts/cool_contract/contract.py b/tests_generated/test_smart_contract_generator_default_production_preset_typescript/smart_contracts/cool_contract/contract.py index 76d1be4..8d74892 100644 --- a/tests_generated/test_smart_contract_generator_default_production_preset_typescript/smart_contracts/cool_contract/contract.py +++ b/tests_generated/test_smart_contract_generator_default_production_preset_typescript/smart_contracts/cool_contract/contract.py @@ -5,4 +5,4 @@ class CoolContract(ARC4Contract): @abimethod() def hello(self, name: String) -> String: - return String.encode(Bytes(b"Hello ") + name.decode()) + return String.encode(Bytes(b"Hello, ") + name.decode()) diff --git a/tests_generated/test_smart_contract_generator_default_production_preset_typescript/smart_contracts/hello_world/contract.py b/tests_generated/test_smart_contract_generator_default_production_preset_typescript/smart_contracts/hello_world/contract.py index 1b8fddb..586abbd 100644 --- a/tests_generated/test_smart_contract_generator_default_production_preset_typescript/smart_contracts/hello_world/contract.py +++ b/tests_generated/test_smart_contract_generator_default_production_preset_typescript/smart_contracts/hello_world/contract.py @@ -5,4 +5,4 @@ class HelloWorld(ARC4Contract): @abimethod() def hello(self, name: String) -> String: - return String.encode(Bytes(b"Hello ") + name.decode()) + return String.encode(Bytes(b"Hello, ") + name.decode()) diff --git a/tests_generated/test_smart_contract_generator_default_production_preset_typescript/tests/hello-world.spec.ts b/tests_generated/test_smart_contract_generator_default_production_preset_typescript/tests/hello-world.spec.ts index 81e62fa..b5ad81a 100644 --- a/tests_generated/test_smart_contract_generator_default_production_preset_typescript/tests/hello-world.spec.ts +++ b/tests_generated/test_smart_contract_generator_default_production_preset_typescript/tests/hello-world.spec.ts @@ -24,10 +24,8 @@ describe('hello world contract', () => { algod, ) await client.deploy({ - allowDelete: true, - allowUpdate: true, - onSchemaBreak: 'replace', - onUpdate: 'update', + onSchemaBreak: 'append', + onUpdate: 'append', }) return { client } } diff --git a/tests_generated/test_smart_contract_generator_default_starter_preset_python/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/contract.py.j2 b/tests_generated/test_smart_contract_generator_default_starter_preset_python/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/contract.py.j2 index 83b938b..ab5ac39 100644 --- a/tests_generated/test_smart_contract_generator_default_starter_preset_python/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/contract.py.j2 +++ b/tests_generated/test_smart_contract_generator_default_starter_preset_python/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/contract.py.j2 @@ -5,4 +5,4 @@ from puyapy.arc4 import String, abimethod class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract): @abimethod() def hello(self, name: String) -> String: - return String.encode(Bytes(b"Hello ") + name.decode()) + return String.encode(Bytes(b"Hello, ") + name.decode()) diff --git a/tests_generated/test_smart_contract_generator_default_starter_preset_python/smart_contracts/cool_contract/contract.py b/tests_generated/test_smart_contract_generator_default_starter_preset_python/smart_contracts/cool_contract/contract.py index 76d1be4..8d74892 100644 --- a/tests_generated/test_smart_contract_generator_default_starter_preset_python/smart_contracts/cool_contract/contract.py +++ b/tests_generated/test_smart_contract_generator_default_starter_preset_python/smart_contracts/cool_contract/contract.py @@ -5,4 +5,4 @@ class CoolContract(ARC4Contract): @abimethod() def hello(self, name: String) -> String: - return String.encode(Bytes(b"Hello ") + name.decode()) + return String.encode(Bytes(b"Hello, ") + name.decode()) diff --git a/tests_generated/test_smart_contract_generator_default_starter_preset_python/smart_contracts/hello_world/contract.py b/tests_generated/test_smart_contract_generator_default_starter_preset_python/smart_contracts/hello_world/contract.py index 1b8fddb..586abbd 100644 --- a/tests_generated/test_smart_contract_generator_default_starter_preset_python/smart_contracts/hello_world/contract.py +++ b/tests_generated/test_smart_contract_generator_default_starter_preset_python/smart_contracts/hello_world/contract.py @@ -5,4 +5,4 @@ class HelloWorld(ARC4Contract): @abimethod() def hello(self, name: String) -> String: - return String.encode(Bytes(b"Hello ") + name.decode()) + return String.encode(Bytes(b"Hello, ") + name.decode()) diff --git a/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/contract.py.j2 b/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/contract.py.j2 index 83b938b..ab5ac39 100644 --- a/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/contract.py.j2 +++ b/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/.algokit/generators/create_contract/smart_contracts/{{ contract_name }}/contract.py.j2 @@ -5,4 +5,4 @@ from puyapy.arc4 import String, abimethod class {{ contract_name.split('_')|map('capitalize')|join }}(ARC4Contract): @abimethod() def hello(self, name: String) -> String: - return String.encode(Bytes(b"Hello ") + name.decode()) + return String.encode(Bytes(b"Hello, ") + name.decode()) diff --git a/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/smart_contracts/cool_contract/contract.py b/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/smart_contracts/cool_contract/contract.py index 76d1be4..8d74892 100644 --- a/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/smart_contracts/cool_contract/contract.py +++ b/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/smart_contracts/cool_contract/contract.py @@ -5,4 +5,4 @@ class CoolContract(ARC4Contract): @abimethod() def hello(self, name: String) -> String: - return String.encode(Bytes(b"Hello ") + name.decode()) + return String.encode(Bytes(b"Hello, ") + name.decode()) diff --git a/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/smart_contracts/hello_world/contract.py b/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/smart_contracts/hello_world/contract.py index 1b8fddb..586abbd 100644 --- a/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/smart_contracts/hello_world/contract.py +++ b/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/smart_contracts/hello_world/contract.py @@ -5,4 +5,4 @@ class HelloWorld(ARC4Contract): @abimethod() def hello(self, name: String) -> String: - return String.encode(Bytes(b"Hello ") + name.decode()) + return String.encode(Bytes(b"Hello, ") + name.decode()) diff --git a/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/tests/hello-world.spec.ts b/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/tests/hello-world.spec.ts index 81e62fa..b5ad81a 100644 --- a/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/tests/hello-world.spec.ts +++ b/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/tests/hello-world.spec.ts @@ -24,10 +24,8 @@ describe('hello world contract', () => { algod, ) await client.deploy({ - allowDelete: true, - allowUpdate: true, - onSchemaBreak: 'replace', - onUpdate: 'update', + onSchemaBreak: 'append', + onUpdate: 'append', }) return { client } }