Skip to content

maintenance(low): foundry.toml chain config drifted from the deployment set; floating pragma on a deployed contract #43

Description

@pviti

Severity: Low (maintenance). From the 2026-07-29 cross-repo audit.

Two build-config drifts that hurt reproducibility/verification:

  • contracts/foundry.toml:26-38: [rpc_endpoints]/[etherscan] define moderato, tempo, celo-sepolia, plasma-testnet — while four of the six chains listed Live at 1.3.0 in the README (Arbitrum Sepolia, Base Sepolia, Optimism Sepolia, Polygon Amoy) have no entry. moderato appears nowhere in the README and tempo is documented as unable to run RAIL0 at all. Anyone redeploying/verifying must supply RPC/verifier URLs out-of-band, and the config implies support that does not exist.
  • contracts/src/RAIL0.sol:2 uses a floating pragma solidity ^0.8.27; while foundry.toml pins solc = "0.8.27" + via_ir. A third party recompiling for verification with a newer 0.8.x can produce different bytecode than the deployed artifact; =0.8.27 removes the ambiguity for a contract with no upgrade path.

Suggested fix: align [rpc_endpoints]/[etherscan] with the actual deployment set; pin the pragma.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions