From 0f50f6200eb374f0780c7c59725006cec339f6bb Mon Sep 17 00:00:00 2001 From: Felipe Alvarado Date: Thu, 28 Nov 2024 13:28:34 +0100 Subject: [PATCH] Fix SafeRelevantTransaction default timestamp (#2347) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix SafeRelevantTransaction default timestamp * Apply suggestion Co-authored-by: Uxío * Apply suggestion Co-authored-by: Uxío --------- Co-authored-by: Uxío --- safe_transaction_service/history/indexers/tx_processor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/safe_transaction_service/history/indexers/tx_processor.py b/safe_transaction_service/history/indexers/tx_processor.py index 156fd1385..4fac1305e 100644 --- a/safe_transaction_service/history/indexers/tx_processor.py +++ b/safe_transaction_service/history/indexers/tx_processor.py @@ -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 = ( @@ -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