# Etherscan Verification - Correct Constructor Arguments **Contract**: `0x89dd12025bfCD38A168455A44B400e913ED33BE2` **Network**: Chain 138 (NOT Ethereum Mainnet) **Status**: ⚠️ **Contract is on Chain 138, not Ethereum Mainnet!** --- ## 🔍 Critical Discovery The contract `0x89dd12025bfCD38A168455A44B400e913ED33BE2` was deployed on **Chain 138**, not Ethereum Mainnet! **Deployment Details**: - **Chain ID**: 138 - **Transaction Hash**: `0x0e760fe6593fb0a7ea7e10f4813b57f346f1565d3a8f412cef6aaf0cdd863f5a` - **Block Number**: 0x101fd (66,205) - **Deployer**: `0x4a666f96fc8764181194447a7dfdb7d471b301c8` --- ## ✅ Correct Constructor Arguments From the deployment broadcast file: 1. **CCIP Router**: `0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D` 2. **WETH9**: `0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2` 3. **Fee Token**: `0x514910771AF9Ca656af840dff83E8264EcF986CA` --- ## 📋 Encoded Constructor Arguments **ABI-Encoded Constructor Arguments**: ``` 00000000000000000000000080226fc0ee2b096224eeac085bb9a8cba1146f7d000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca ``` **For Etherscan (with 0x prefix)**: ``` 0x00000000000000000000000080226fc0ee2b096224eeac085bb9a8cba1146f7d000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca ``` --- ## ⚠️ Important Note **This contract is on Chain 138, NOT Ethereum Mainnet!** If you're trying to verify on Etherscan (Ethereum Mainnet), you need to: 1. Deploy the contract to Ethereum Mainnet first 2. Then verify it on Etherscan **For Chain 138 verification**, use Blockscout: - **Explorer**: https://explorer.d-bis.org - **Verification**: Use `forge verify-contract` with `--verifier blockscout` --- ## 🔧 Verification on Chain 138 (Blockscout) ```bash cd /home/intlc/projects/smom-dbis-138 forge verify-contract \ 0x89dd12025bfCD38A168455A44B400e913ED33BE2 \ contracts/ccip/CCIPWETH9Bridge.sol:CCIPWETH9Bridge \ --verifier blockscout \ --verifier-url https://explorer.d-bis.org/api \ --constructor-args $(cast abi-encode "constructor(address,address,address)" "0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D" "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" "0x514910771AF9Ca656af840dff83E8264EcF986CA") \ --num-of-optimizations 200 \ --chain-id 138 \ --rpc-url http://192.168.11.250:8545 ``` --- ## 📄 Source Code Use the flattened contract from: - `docs/CCIPWETH9Bridge_flattened.sol` --- **Last Updated**: $(date) **Status**: ⚠️ **Contract is on Chain 138, verify on Blockscout, not Etherscan!**