Skip to content

Commit

Permalink
Merge pull request blockscout#9518 from blockscout/np-fix-multiple-re…
Browse files Browse the repository at this point in the history
…sults-error

Fix MultipleResultsError in smart_contract_creation_tx_bytecode/1
  • Loading branch information
vbaranov authored Mar 11, 2024
2 parents f8092ac + 4a260fd commit 3ca1455
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion apps/explorer/lib/explorer/chain.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3ca1455

Please sign in to comment.