@@ -571,7 +571,8 @@ def __init__(
571
571
ccip_read_enabled : Optional [bool ] = None ,
572
572
decode_tuples : Optional [bool ] = False ,
573
573
) -> None :
574
- super ().__init__ (abi , w3 , address )
574
+ super ().__init__ (abi , w3 , address , decode_tuples = decode_tuples )
575
+
575
576
if self .abi :
576
577
if transaction is None :
577
578
transaction = {}
@@ -587,8 +588,8 @@ def __init__(
587
588
decode_tuples = decode_tuples ,
588
589
)
589
590
590
- # TODO: This is a hack to get around the fact that we can't call the
591
- # full async method from within a class's __init__ method. We'll need
591
+ # TODO: The no_extra_call method gets around the fact that we can't call
592
+ # the full async method from within a class's __init__ method. We need
592
593
# to see if there's a way to account for all desired elif cases.
593
594
block_id = parse_block_identifier_no_extra_call (
594
595
self .w3 , block_identifier
@@ -599,7 +600,6 @@ def __init__(
599
600
transaction = transaction ,
600
601
block_identifier = block_id ,
601
602
ccip_read_enabled = ccip_read_enabled ,
602
- decode_tuples = decode_tuples ,
603
603
)
604
604
605
605
setattr (self , func ["name" ], caller_method )
0 commit comments