@@ -654,23 +654,11 @@ def _set_supports_trace_call(self, value: bool):
654654 self .provider ._supports_debug_trace_call = True
655655
656656 def _debug_trace_call (self ):
657- tx = {
658- "from" : self .transaction .get ("from" , ZERO_ADDRESS ),
659- "to" : self .transaction .get ("to" , ZERO_ADDRESS ),
660- "gas" : to_hex (self .transaction .get ("gas" , 21_000 )),
661- "gasPrice" : to_hex (self .transaction .get ("gasPrice" , 0 )),
662- "value" : to_hex (self .transaction .get ("value" , 0 )),
663- "data" : self .transaction .get ("data" , "0x" ),
664- "maxFeePerGas" : self .transaction .get ("maxFeePerGas" , self .provider .base_fee ),
665- "maxPriorityFeePerGas" : to_hex (self .transaction .get ("maxPriorityFeePerGas" , 0 )),
666- }
667- arguments = [tx , * self .arguments ]
657+ arguments = [self .transaction , * self .arguments ]
668658
669659 # Block ID is required, at least for regular geth nodes.
670660 if len (arguments ) == 1 :
671- arguments .extend (("latest" , {"tracer" : "callTracer" }))
672- elif len (arguments ) == 2 :
673- arguments .append ({"tracer" : "callTracer" })
661+ arguments .append ("latest" )
674662
675663 return self .provider .make_request ("debug_traceCall" , arguments )
676664
0 commit comments