From 277197085edaae6af9ab4b56bd8e1b73de7552de Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Thu, 4 Apr 2024 12:17:31 -0400 Subject: [PATCH] nit: style --- tests/functional/builtins/codegen/test_slice.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/functional/builtins/codegen/test_slice.py b/tests/functional/builtins/codegen/test_slice.py index 01421349bc..03dc7cc56d 100644 --- a/tests/functional/builtins/codegen/test_slice.py +++ b/tests/functional/builtins/codegen/test_slice.py @@ -217,8 +217,10 @@ def test_slice_private(get_contract, location): # test there are no buffer overruns in the slice function if location == "storage": decl = "bytez: public(String[12])" - else: + elif location == "transient": decl = "bytez: public(transient(String[12]))" + else: + raise Exception("unreachable") code = f""" {decl}