Skip to content

Commit 95d943b

Browse files
committed
fix: add fail case to rofl utility
1 parent ecf6521 commit 95d943b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

paymaster-relayer/paymaster_relayer/utils/rofl_utility.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ async def submit_tx(self, tx: TxParams) -> bool:
140140
case {"ok": _}:
141141
logger.info("Transaction submitted successfully to ROFL")
142142
return True
143+
case {"fail": fail_info}:
144+
# EVM revert or execution failure
145+
error_msg = fail_info.get("message", str(fail_info))
146+
logger.error(f"ROFL transaction failed: {error_msg}")
147+
raise Exception(f"ROFL transaction failed: {error_msg}")
143148
case {"error": error_msg}:
144149
logger.error(f"ROFL transaction failed: {error_msg}")
145150
raise Exception(f"ROFL transaction failed: {error_msg}")

0 commit comments

Comments
 (0)