Skip to content

Commit

Permalink
Fix SafeRelevantTransaction default timestamp (#2347)
Browse files Browse the repository at this point in the history
* Fix SafeRelevantTransaction default timestamp

* Apply suggestion

Co-authored-by: Uxío <Uxio0@users.noreply.github.com>

* Apply suggestion

Co-authored-by: Uxío <Uxio0@users.noreply.github.com>

---------

Co-authored-by: Uxío <Uxio0@users.noreply.github.com>
  • Loading branch information
falvaradorodriguez and Uxio0 authored Nov 28, 2024
1 parent 5215ac1 commit 0f50f62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions safe_transaction_service/history/indexers/tx_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ def __process_decoded_transaction(
SafeRelevantTransaction.objects.get_or_create(
ethereum_tx=ethereum_tx,
safe=contract_address,
defaults={"timestamp": ethereum_tx.created},
defaults={"timestamp": internal_tx.timestamp},
)
# Detect 4337 UserOperations in this transaction
number_detected_user_operations = (
Expand Down Expand Up @@ -722,7 +722,7 @@ def __process_decoded_transaction(
SafeRelevantTransaction.objects.get_or_create(
ethereum_tx=ethereum_tx,
safe=contract_address,
defaults={"timestamp": ethereum_tx.created},
defaults={"timestamp": internal_tx.timestamp},
)

# Don't modify created
Expand Down

0 comments on commit 0f50f62

Please sign in to comment.