Skip to content

Commit

Permalink
Fix missing paymaster
Browse files Browse the repository at this point in the history
  • Loading branch information
moisses89 authored and Uxio0 committed Jul 19, 2024
1 parent f6e837c commit 88b17f7
Showing 1 changed file with 2 additions and 2 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 @@ -20,7 +20,7 @@ class UserOperationReceipt:
entry_point: ChecksumAddress
sender: ChecksumAddress
nonce: int
paymaster: ChecksumAddress
paymaster: Optional[ChecksumAddress]
actual_gas_cost: int
actual_gas_used: int
success: bool
Expand All @@ -37,7 +37,7 @@ def from_bundler_response(
user_operation_receipt_response["entryPoint"],
user_operation_receipt_response["sender"],
int(user_operation_receipt_response["nonce"], 16),
user_operation_receipt_response["paymaster"],
user_operation_receipt_response.get("paymaster"),
int(user_operation_receipt_response["actualGasCost"], 16),
int(user_operation_receipt_response["actualGasUsed"], 16),
user_operation_receipt_response["success"],
Expand Down

0 comments on commit 88b17f7

Please sign in to comment.