We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecf6521 commit 95d943bCopy full SHA for 95d943b
paymaster-relayer/paymaster_relayer/utils/rofl_utility.py
@@ -140,6 +140,11 @@ async def submit_tx(self, tx: TxParams) -> bool:
140
case {"ok": _}:
141
logger.info("Transaction submitted successfully to ROFL")
142
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}")
148
case {"error": error_msg}:
149
logger.error(f"ROFL transaction failed: {error_msg}")
150
raise Exception(f"ROFL transaction failed: {error_msg}")
0 commit comments