Merge pull request #9518 from blockscout/np-fix-multiple-results-error

Fix MultipleResultsError in smart_contract_creation_tx_bytecode/1
pull/9601/head
Victor Baranov 9 months ago committed by GitHub
commit 3ca1455ffd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 4
      apps/explorer/lib/explorer/chain.ex

@ -19,6 +19,7 @@
- [#9563](https://github.com/blockscout/blockscout/pull/9563) - Fix timestamp handler for unfinalized zkEVM batches
- [#9560](https://github.com/blockscout/blockscout/pull/9560) - Fix fetch pending transaction for hyperledger besu client
- [#9555](https://github.com/blockscout/blockscout/pull/9555) - Fix EIP-1967 beacon proxy pattern detection
- [#9518](https://github.com/blockscout/blockscout/pull/9518) - Fix MultipleResultsError in `smart_contract_creation_tx_bytecode/1`
- [#9514](https://github.com/blockscout/blockscout/pull/9514) - Fix missing `0x` prefix for `blockNumber`, `logIndex`, `transactionIndex` and remove `transactionLogIndex` in `eth_getLogs` response.
- [#9512](https://github.com/blockscout/blockscout/pull/9512) - Docker-compose 2.24.6 compatibility
- [#9262](https://github.com/blockscout/blockscout/pull/9262) - Fix withdrawal status

@ -3048,7 +3048,9 @@ defmodule Explorer.Chain do
join: t in assoc(itx, :transaction),
where: itx.created_contract_address_hash == ^address_hash,
where: t.status == ^1,
select: %{init: itx.init, created_contract_code: itx.created_contract_code}
select: %{init: itx.init, created_contract_code: itx.created_contract_code},
order_by: [desc: itx.block_number],
limit: ^1
)
res = creation_int_tx_query |> Repo.one()

Loading…
Cancel
Save