Skip to content

Conversation

@ptrus
Copy link
Member

@ptrus ptrus commented Dec 22, 2025

Fixes: #1227

Insert address preimages and queue verified contracts for bytecode analysis. Reprocess contracts missing preimages to backfill historical data from Sourcify.

@ptrus ptrus force-pushed the ptrus/bugfix/contracts-missing-bytecode branch from f341f26 to 950d59a Compare December 22, 2025 09:25
Insert address preimages and queue verified contracts for bytecode
analysis. Reprocess contracts missing preimages to backfill historical
data from Sourcify.
@ptrus ptrus force-pushed the ptrus/bugfix/contracts-missing-bytecode branch from 950d59a to 46d4c82 Compare December 23, 2025 11:21
@ptrus ptrus requested a review from Copilot December 23, 2025 11:23
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an issue where verified smart contracts were missing their runtime bytecode in the database. The fix involves three main changes:

  • Insert address preimages (ETH to Oasis address mappings) for all verified contracts
  • Queue verified contracts for bytecode analysis to ensure bytecode gets fetched
  • Reprocess contracts missing preimages to backfill historical data from Sourcify

Reviewed changes

Copilot reviewed 17 out of 19 changed files in this pull request and generated no comments.

Show a summary per file
File Description
storage/migrations/52_backfill_verified_contracts_bytecode.up.sql Migration to backfill verified contracts into the bytecode analysis queue
analyzer/queries/queries.go Updated queries to check for contracts missing preimages and improve bytecode analysis query
analyzer/evmverifier/evmverifier.go Added logic to insert address preimages, queue contracts for bytecode analysis, and reprocess contracts missing preimages
tests/e2e_regression//e2e_config_.yml Updated RPC endpoints and E2E regression artifacts version
tests/e2e_regression//expected/ Updated expected test outputs to include address_preimage field
.changelog/1228.bugfix.md Changelog entry for the fix
Makefile, .github/workflows/ci-test.yaml Updated E2E regression artifacts version

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ptrus ptrus merged commit 56d8136 into main Dec 23, 2025
26 checks passed
@ptrus ptrus deleted the ptrus/bugfix/contracts-missing-bytecode branch December 23, 2025 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Contract is missing bytecode

2 participants