Skip to content

Commit

Permalink
refactor: update deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
NotPeopling2day committed Dec 12, 2023
1 parent d3c526b commit 3b507e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ape_alchemy/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def get_call_tree(self, txn_hash: str) -> CallTreeNode:

def _get_calltree_using_parity_style(self, txn_hash: str) -> CallTreeNode:
raw_trace_list = self._make_request("trace_transaction", [txn_hash])
trace_list = ParityTraceList.parse_obj(raw_trace_list)
trace_list = ParityTraceList.model_validate(raw_trace_list)
evm_call = get_calltree_from_parity_trace(trace_list)
return self._create_call_tree_node(evm_call)

Expand Down

0 comments on commit 3b507e3

Please sign in to comment.