Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/bytecode-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Check Bytecode Changes

on:
pull_request:
branches:
- main
paths:
- 'solidity/**'
- '.github/workflows/bytecode-analysis.yml'
Expand Down
3 changes: 3 additions & 0 deletions solidity/contracts/Mailbox.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ contract Mailbox is

// ============ Constants ============

// Test constant for bytecode check CI test - DELETE ME
uint256 public constant TEST_BYTECODE_CHANGE = 12345;

Comment on lines +34 to +36
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

This test constant shouldn't make it into the swamp — er, main branch.

The comment says "DELETE ME" and the PR description confirms this is purely for testin' the bytecode check CI. Once you've verified the workflow fails as expected, this whole thing needs to go. Leavin' test artifacts in a production contract is like leavin' donkeys in places they don't belong.

Make sure to delete the PR and branch after the test, as noted in the objectives.

🤖 Prompt for AI Agents
In `@solidity/contracts/Mailbox.sol` around lines 34 - 36, Remove the temporary
test constant and its "DELETE ME" comment: delete the uint256 public constant
TEST_BYTECODE_CHANGE = 12345; declaration from Mailbox.sol and ensure there are
no remaining references to TEST_BYTECODE_CHANGE elsewhere (ABI/other
contracts/tests); commit the change and clean up the test PR/branch as described
in the PR notes.

// Domain of chain on which the contract is deployed
uint32 public immutable localDomain;

Expand Down
1 change: 1 addition & 0 deletions solidity/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ignored_warnings_from = ['lib', 'test', 'contracts/test']
verbosity = 4
# disable metadata for bytecode comparison
cbor_metadata = false
bytecode_hash = "none"

[rpc_endpoints]
mainnet = "${RPC_URL_MAINNET}"
Expand Down
Loading