diff --git a/gnosis/__init__.py b/gnosis/__init__.py index 645bbcec6..5a6ff998c 100644 --- a/gnosis/__init__.py +++ b/gnosis/__init__.py @@ -1 +1 @@ -VERSION = "6.0.0b32" +VERSION = "6.0.0b33" diff --git a/gnosis/eth/account_abstraction/user_operation.py b/gnosis/eth/account_abstraction/user_operation.py index 11bd3c862..9e31b344d 100644 --- a/gnosis/eth/account_abstraction/user_operation.py +++ b/gnosis/eth/account_abstraction/user_operation.py @@ -115,8 +115,9 @@ def paymaster(self) -> Optional[ChecksumAddress]: @cached_property def paymaster_data(self) -> Optional[bytes]: - result = self.paymaster_and_data[:20] - return result if result else None + if self.paymaster_and_data: + return self.paymaster_and_data[20:] + return None def calculate_user_operation_hash(self, chain_id: int) -> bytes: hash_init_code = fast_keccak(self.init_code)