Skip to content

Commit

Permalink
Process SafeOperation datetime in safe-eth-py
Browse files Browse the repository at this point in the history
  • Loading branch information
Uxio0 committed Mar 20, 2024
1 parent 15839a4 commit 416e350
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import logging
from datetime import datetime
from functools import cache
from typing import List, Optional, Sequence, Tuple

Expand Down Expand Up @@ -176,8 +175,8 @@ def index_safe_operation(
hash=safe_operation_hash,
defaults={
"user_operation": user_operation_model,
"valid_after": datetime.fromtimestamp(safe_operation.valid_after),
"valid_until": datetime.fromtimestamp(safe_operation.valid_until),
"valid_after": safe_operation.valid_after_as_datetime,
"valid_until": safe_operation.valid_until_as_datetime,
"module_address": module_address,
},
)
Expand Down

0 comments on commit 416e350

Please sign in to comment.