Add preload for :created_contract_address (#6105)

Co-authored-by: Victor Baranov <baranov.viktor.27@gmail.com>
pull/6108/head
nikitosing 2 years ago committed by GitHub
parent 27ec900abf
commit 83454bbe94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 8
      apps/block_scout_web/lib/block_scout_web/channels/address_channel.ex

@ -8,6 +8,7 @@
### Fixes
- [#6094](https://github.com/blockscout/blockscout/pull/6094) - Fix inconsistent behaviour of `getsourcecode` method
- [#6105](https://github.com/blockscout/blockscout/pull/6105) - Fix some token transfers broadcasting
- [#6106](https://github.com/blockscout/blockscout/pull/6106) - Fix 500 response on `/coin-balance` for empty address
### Chore

@ -201,7 +201,13 @@ defmodule BlockScoutWeb.AddressChannel do
transaction =
Transaction
|> Repo.get_by(hash: token_transfer.transaction_hash)
|> Repo.preload([:from_address, :to_address, :block, token_transfers: [:from_address, :to_address, :token]])
|> Repo.preload([
:from_address,
:to_address,
:block,
:created_contract_address,
token_transfers: [:from_address, :to_address, :token]
])
rendered =
View.render_to_string(

Loading…
Cancel
Save