Skip to content

Commit

Permalink
Fix SQL query in TransactionStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelekol committed Jun 25, 2021
1 parent b1693d7 commit a7d9281
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ class TransactionStorage(database: TransactionDatabase) : ITransactionStorage, I
hash?.let { transactionDao.getTransaction(hash) }?.let { fromTransaction ->
val transactionIndex = fromTransaction.receiptWithLogs?.receipt?.transactionIndex ?: 0
whereClause += """
AND tx.timestamp < ${fromTransaction.transaction.timestamp} OR
AND (
tx.timestamp < ${fromTransaction.transaction.timestamp} OR
(
tx.timestamp = ${fromTransaction.transaction.timestamp} AND
receipt.transactionIndex < $transactionIndex
Expand Down

0 comments on commit a7d9281

Please sign in to comment.