Skip to content

Commit fc53b0f

Browse files
committed
feat: add avm_version to algopy.Contract class options
1 parent 0cc9807 commit fc53b0f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/_algopy_testing/models/contract.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class _ContractMeta(type):
3636
_name: str
3737
_scratch_slots: typing.Any
3838
_state_totals: StateTotals | None
39+
_avm_version: int
3940

4041
def __init__(cls, *args: typing.Any, **kwargs: typing.Any) -> None:
4142
super().__init__(*args, **kwargs)
@@ -93,10 +94,12 @@ def __init_subclass__(
9394
algopy.urange | tuple[int | algopy.urange, ...] | list[int | algopy.urange] | None
9495
) = None,
9596
state_totals: StateTotals | None = None,
97+
avm_version: int = 10,
9698
):
9799
cls._name = name or cls.__name__
98100
cls._scratch_slots = scratch_slots
99101
cls._state_totals = state_totals
102+
cls._avm_version = avm_version
100103

101104
def approval_program(self) -> algopy.UInt64 | bool:
102105
raise NotImplementedError("`approval_program` is not implemented.")

0 commit comments

Comments
 (0)