diff --git a/.github/workflows/bytecode-analysis.yml b/.github/workflows/bytecode-analysis.yml index a89c7dfa8b8..5f1ee2a3f55 100644 --- a/.github/workflows/bytecode-analysis.yml +++ b/.github/workflows/bytecode-analysis.yml @@ -2,6 +2,8 @@ name: Check Bytecode Changes on: pull_request: + branches: + - main paths: - 'solidity/**' - '.github/workflows/bytecode-analysis.yml' diff --git a/solidity/contracts/Mailbox.sol b/solidity/contracts/Mailbox.sol index cc0b55865d4..d84865c7ae3 100644 --- a/solidity/contracts/Mailbox.sol +++ b/solidity/contracts/Mailbox.sol @@ -31,6 +31,9 @@ contract Mailbox is // ============ Constants ============ + // Test constant for bytecode check CI test - DELETE ME + uint256 public constant TEST_BYTECODE_CHANGE = 12345; + // Domain of chain on which the contract is deployed uint32 public immutable localDomain; diff --git a/solidity/foundry.toml b/solidity/foundry.toml index 21e9804eecc..905b6641568 100644 --- a/solidity/foundry.toml +++ b/solidity/foundry.toml @@ -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}"