Skip to content

Commit

Permalink
Make reason field optional for UserOperation Receipts
Browse files Browse the repository at this point in the history
  • Loading branch information
Uxio0 committed May 9, 2024
1 parent cbe0ad0 commit 576d510
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gnosis/eth/account_abstraction/user_operation_receipt.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class UserOperationReceipt:
actual_gas_cost: int
actual_gas_used: int
success: bool
reason: str
reason: Optional[str]
logs: List[LogReceipt]

@classmethod
Expand All @@ -41,7 +41,7 @@ def from_bundler_response(
int(user_operation_receipt_response["actualGasCost"], 16),
int(user_operation_receipt_response["actualGasUsed"], 16),
user_operation_receipt_response["success"],
user_operation_receipt_response["reason"],
user_operation_receipt_response.get("reason"),
user_operation_receipt_response["logs"],
)

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = safe-eth-py
version = 6.0.0b28
version = 6.0.0b29
description = Safe Ecosystem Foundation utilities for Ethereum projects
long_description = file: README.rst
long_description_content_type = text/x-rst; charset=UTF-8
Expand Down

0 comments on commit 576d510

Please sign in to comment.