Skip to content

Conversation

austinabell
Copy link
Contributor

This change is to avoid the footgun of mixing up RPC_URL from other commands, as the same variable is used to point to the market deployment and also for the accounting contract. Name isn't perfect, because very possible the accounting contract is not on Ethereum, and the market they are interacting on is also Ethereum, which could cause other confusions.

Naming suggestions welcome, couldn't think of one that would prevent the footguns we have been seeing more than this.

@github-actions github-actions bot changed the title Switch pvw commands to use ETH_RPC_URL to disambiguate deployments BM-1620: Switch pvw commands to use ETH_RPC_URL to disambiguate deployments Sep 19, 2025
@austinabell austinabell enabled auto-merge (squash) September 24, 2025 23:49
prover_config: ProverConfig,

/// The RPC URL to use to submit the reward claim transaction.
#[clap(long, env = "ETH_RPC_URL")]
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: maybe rename it to REWARD_RPC_URL so in case it's decided to use a different chain for the reward (for example base due to tx fees in eth), it's a no brainer :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah agree that might be a better name. @willpote you good with this, also because similarity with us using REWARD_ADDRESS env vars now?

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.

3 participants