From E2E test #644 / agent-os #326
Bug
`plotlink claim` and `plotlink status` import a hardcoded Sepolia `MCV2_BOND_ADDRESS` instead of resolving the correct address based on chain ID. On mainnet, the calls revert because the contract doesn't exist at the Sepolia address.
Fix
In `packages/cli/src/constants.ts` (or wherever addresses are defined):
- Make bond address chain-aware: Sepolia vs mainnet
- Read chain ID from config/RPC and select the correct address
- Update `claim.ts` and `status.ts` to use the resolved address
Mainnet MCV2_Bond: check `lib/contracts/constants.ts` in the main app for the correct address.
Branch
`task/661-cli-chain-aware-addresses`
Self-Verification (T3)
From E2E test #644 / agent-os #326
Bug
`plotlink claim` and `plotlink status` import a hardcoded Sepolia `MCV2_BOND_ADDRESS` instead of resolving the correct address based on chain ID. On mainnet, the calls revert because the contract doesn't exist at the Sepolia address.
Fix
In `packages/cli/src/constants.ts` (or wherever addresses are defined):
Mainnet MCV2_Bond: check `lib/contracts/constants.ts` in the main app for the correct address.
Branch
`task/661-cli-chain-aware-addresses`
Self-Verification (T3)