Skip to content

Commit

Permalink
fix: return the exception's message
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamantios committed Sep 13, 2024
1 parent 76f59f8 commit 25a674b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,7 @@ def _try_get_revert_reason(self, tx: TxData, **_kwargs: Any) -> str:
self.api.eth.call(replay_tx, tx["blockNumber"] - 1)
except ContractLogicError as e:
# execution reverted exception
return str(e)
return e.message
except HTTPError as e:
# http exception
raise e
Expand Down

0 comments on commit 25a674b

Please sign in to comment.