We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
arc4_prefix
algopy.Bytes
1 parent d6c6dd2 commit 40328caCopy full SHA for 40328ca
src/_algopy_testing/utils.py
@@ -28,6 +28,8 @@
28
29
from _algopy_testing.op.global_values import GlobalFields
30
31
+ _TBytes = typing.TypeVar("_TBytes", bytes, algopy.Bytes)
32
+
33
34
def resolve_app_index(app_id_or_index: algopy.UInt64 | int) -> int:
35
from _algopy_testing.context_helpers import lazy_context
@@ -168,7 +170,7 @@ def get_new_scratch_space() -> list[algopy.Bytes | algopy.UInt64]:
168
170
return [algopy.UInt64(0)] * 256
169
171
172
-def arc4_prefix(value: bytes) -> bytes:
173
+def arc4_prefix(value: _TBytes) -> _TBytes:
174
"""Return the value with the ARC4 prefix prepended."""
175
return ARC4_RETURN_PREFIX + value
176
0 commit comments