Skip to content

fix: bc-verify-broadcast also matches CREATE2/CREATE3 ContractCreation events#6

Open
PickleyD wants to merge 1 commit intoCyfrin:mainfrom
PickleyD:fix-bc-verify-broadcast
Open

fix: bc-verify-broadcast also matches CREATE2/CREATE3 ContractCreation events#6
PickleyD wants to merge 1 commit intoCyfrin:mainfrom
PickleyD:fix-bc-verify-broadcast

Conversation

@PickleyD
Copy link
Copy Markdown
Contributor

@PickleyD PickleyD commented May 5, 2026

Summary

bc-verify-broadcast was only matching CreateX's single-arg ContractCreation(address indexed) event (topic 0x4db17dd5...), which is emitted by deployCreate. CreateX's deployCreate2 and deployCreate3 emit a different two-arg event ContractCreation(address indexed, bytes32 indexed) (topic 0xb8fda7e0...), so any contract deployed via CREATE2/CREATE3 was silently skipped during verification.

This was discovered while walking the battlechain-starter-foundry quickstart: just verify-setup only verified MockToken (deployed via bcDeployCreate) and silently skipped VulnerableVault (deployed via bcDeployCreate2).

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.

1 participant