@@ -64,7 +64,7 @@ def get_arc4_metadata(fn: object) -> MethodMetadata:
6464def get_ordered_args (
6565 _fn : Callable [..., typing .Any ], app_args : list [typing .Any ], kwargs : dict [str , typing .Any ]
6666) -> list [typing .Any ]:
67- # TODO: order kwargs correctly based on fn signature
67+ # TODO: 1.0 order kwargs correctly based on fn signature
6868 return [* app_args , * kwargs .values ()]
6969
7070
@@ -140,8 +140,6 @@ def wrapper(*args: _P.args, **kwargs: _P.kwargs) -> _R:
140140 app_id = contract .__app_id__
141141
142142 context = lazy_context .value
143- # TODO: does contract need to be active here?
144- # TODO: handle custom txn groups
145143 ordered_args = get_ordered_args (fn , app_args , kwargs )
146144 assert metadata .arc4_signature is not None , "expected abimethod"
147145 txns = create_abimethod_txns (
@@ -152,7 +150,7 @@ def wrapper(*args: _P.args, **kwargs: _P.kwargs) -> _R:
152150 with context .txn ._maybe_implicit_txn_group (txns ):
153151 check_routing_conditions (app_id , metadata )
154152 result = fn (* args , ** kwargs )
155- # TODO: add result along with ARC4 log prefix to application logs?
153+ # TODO: 1.0 add result along with ARC4 log prefix to application logs?
156154 return result
157155
158156 return wrapper
@@ -202,7 +200,6 @@ def create_baremethod_txns(app_id: int) -> list[algopy.gtxn.TransactionBase]:
202200 contract_app = lazy_context .ledger .get_application (app_id )
203201 txn_fields .setdefault ("app_id" , contract_app )
204202
205- # TODO: fill out other fields where possible (see abimethod)
206203 txn_fields .setdefault (
207204 "approval_program_pages" , [algopy_testing .Bytes (ALWAYS_APPROVE_TEAL_PROGRAM )]
208205 )
@@ -253,7 +250,7 @@ def _extract_arrays_from_args(
253250 case _ as maybe_native :
254251 app_args .append (algopy_testing .arc4 .native_value_to_arc4 (maybe_native ).bytes )
255252 if len (app_args ) > 16 :
256- # TODO: pack extra args into an ARC4 tuple
253+ # TODO:1.0 pack extra args into an ARC4 tuple
257254 raise NotImplementedError
258255 return _TxnArrays (
259256 txns = txns ,
@@ -374,7 +371,6 @@ def wrapper(*args: _P.args, **kwargs: _P.kwargs) -> _R:
374371 assert isinstance (contract , algopy_testing .ARC4Contract ), "expected ARC4 contract"
375372 assert fn is not None , "expected function"
376373
377- # TODO: handle custom txn groups
378374 txns = create_baremethod_txns (contract .__app_id__ )
379375
380376 with lazy_context .txn ._maybe_implicit_txn_group (txns ):
0 commit comments