Skip to content

Commit

Permalink
Fix 4337 paymaster data parsing
Browse files Browse the repository at this point in the history
- Set version v6.0.0b33
  • Loading branch information
Uxio0 committed Jul 9, 2024
1 parent d482ff4 commit 7b69bd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gnosis/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "6.0.0b32"
VERSION = "6.0.0b33"
5 changes: 3 additions & 2 deletions gnosis/eth/account_abstraction/user_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7b69bd7

Please sign in to comment.