Skip to content

Commit

Permalink
fix: grab result dict (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey authored Jul 26, 2022
1 parent c11b96a commit a3a6fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ape_alchemy/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def get_transaction_trace(self, txn_hash: str) -> Iterator[TraceFrame]:

def get_call_tree(self, txn_hash: str) -> CallTreeNode:
receipt = self.get_transaction(txn_hash)
raw_trace_list = self._make_request("trace_transaction", [txn_hash])
raw_trace_list = self._make_request("trace_transaction", [txn_hash]).get("result", [])
trace_list = ParityTraceList.parse_obj(raw_trace_list)
return get_calltree_from_parity_trace(trace_list, gas_cost=receipt.gas_used)

Expand Down

0 comments on commit a3a6fd5

Please sign in to comment.