Skip to content

Commit

Permalink
Fix view
Browse files Browse the repository at this point in the history
  • Loading branch information
Uxio0 committed Mar 25, 2024
1 parent f8657d8 commit 5066b98
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions safe_transaction_service/account_abstraction/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ def get(self, request, address, *args, **kwargs):
)
def post(self, request, address, *args, **kwargs):
"""
Create a new signed message for a Safe. Message can be:
- A ``string``, so ``EIP191`` will be used to get the hash.
- An ``EIP712`` ``object``.
Create a new 4337 ``SafeOperation`` for a Safe.
Hash will be calculated from the provided ``message``. Sending a raw ``hash`` will not be accepted,
service needs to derive it itself.
:param request:
:param address:
:param args:
:param kwargs:
:return:
"""

if not fast_is_checksum_address(address):
return Response(
status=status.HTTP_422_UNPROCESSABLE_ENTITY,
Expand Down

0 comments on commit 5066b98

Please sign in to comment.