Merge pull request #6037 from blockscout/vb-list-int-txs-api-order

Fix order of results in txlistinternal API endpoint
pull/6038/head
Victor Baranov 2 years ago committed by GitHub
commit 93b7902ea4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 8
      apps/explorer/lib/explorer/etherscan.ex

@ -8,6 +8,7 @@
### Fixes
- [#6037](https://github.com/blockscout/blockscout/pull/6037) - Fix order of results in txlistinternal API endpoint
- [#6036](https://github.com/blockscout/blockscout/pull/6036) - Fix address checksum on transaction page
- [#6032](https://github.com/blockscout/blockscout/pull/6032) - Sort by address.hash column in accountlist API endpoint
- [#6017](https://github.com/blockscout/blockscout/pull/6017), [#6028](https://github.com/blockscout/blockscout/pull/6028) - Move "contract interaction" and "Add chain to MM" env vars to runtime

@ -202,6 +202,14 @@ defmodule Explorer.Etherscan do
query_to_address_hash_wrapped
|> union(^query_from_address_hash_wrapped)
|> union(^query_created_contract_address_hash_wrapped)
|> Chain.wrapped_union_subquery()
|> order_by(
[q],
[
{^options.order_by_direction, q.block_number},
desc: q.index
]
)
|> Repo.replica().all()
else
query =

Loading…
Cancel
Save