Merge pull request #7639 from blockscout/fix-contract-creation-transactions

Fix contract creation transactions
mf-optimize-exchange-rates-requests-rate
Victor Baranov 2 years ago committed by GitHub
commit baed098c65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 11
      apps/explorer/priv/repo/migrations/20230606091935_fix_contract_creation_transactions.exs

@ -26,6 +26,7 @@
- [#7545](https://github.com/blockscout/blockscout/pull/7545) - API v2: Check if cached exchange rate is empty before replacing DB value in stats API
- [#7516](https://github.com/blockscout/blockscout/pull/7516) - Fix shrinking logo in Safari
- [#7590](https://github.com/blockscout/blockscout/pull/7590) - Drop genesis block in internal transactions fetcher
- [#7639](https://github.com/blockscout/blockscout/pull/7639) - Fix contract creation transactions
### Chore

@ -0,0 +1,11 @@
defmodule Explorer.Repo.Migrations.FixContractCreationTransactions do
use Ecto.Migration
def change do
execute("""
UPDATE transactions
SET created_contract_address_hash = NULL
WHERE created_contract_address_hash IS NOT NULL AND to_address_hash IS NOT NULL;
""")
end
end
Loading…
Cancel
Save