Skip to content

Commit

Permalink
fix: return_value not decoded in 1 case
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Aug 8, 2024
1 parent af5ce72 commit aae4ee8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ape_ethereum/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,10 @@ def _return_value_from_enriched_calltree(self) -> Any:
if raw_return_data := calltree.get("returndata"):
if abi := self.root_method_abi:
try:
return self._ecosystem.decode_returndata(abi, raw_return_data)
return self._ecosystem.decode_returndata(abi, HexBytes(raw_return_data))
except Exception as err:
logger.debug(f"Failed decoding raw returndata. Error: {err}")
return raw_return_data

return None

Expand Down

0 comments on commit aae4ee8

Please sign in to comment.