Background story
I'm sorry. over the last weeks, I posted many questions. Before asking questions, I tried and asked AI.
I have already verified implementation contract, GitHub code: https://github.com/WarriorFromLongAgo/fishcake-contracts/blob/v0_0_2_nft_image/src/contracts/core/token/NftManagerV3.sol
In polygon implementation contract: 0xa270aeebca041c5c7735f7b9cfd9d80527f3ebae
In polygon transparentproxy contract: 0x2f2cb24bab1b6e2353ef6246a2ea4ce50487008b
When I was verifying the transparentproxy contract, I had some questions.
environment
window
foundry
forge solc version = 0.8.26
i read and tried the these posts
I have already read and tried the following post
https://forum.openzeppelin.com/t/verifying-transparentupgradeableproxy-on-boba-network/22943
https://forum.openzeppelin.com/t/how-to-verify-a-contract-on-etherscan-bscscan-polygonscan/14225
https://forum.openzeppelin.com/t/can-not-verify-transparentupgradeableproxy-error-invalid-constructor-arguments-provided-please-verify-that-they-are-in-abi-encoded-format/40824/2
https://forum.openzeppelin.com/t/error-invalid-constructor-arguments-provided-please-verify-that-they-are-in-abi-encoded-format/2241
https://forum.openzeppelin.com/t/invalid-constructor-arguments-provided-please-verify-that-they-are-in-abi-encoded-format/28926
https://forum.openzeppelin.com/t/error-invalid-constructor-arguments-provided-please-verify-that-they-are-in-abi-encoded-format-even-with-correct-abi-encoded-args-provided/28610
question
get implementation contract address
cast storage 0x2F2Cb24BaB1b6E2353EF6246a2Ea4ce50487008B 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc --rpc-url "$env:RPC_URL"
0x000000000000000000000000A270aeebCa041C5C7735f7B9cfD9D80527F3EbaE
get proxy admin address
cast storage 0x2F2Cb24BaB1b6E2353EF6246a2Ea4ce50487008B 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103 --rpc-url "$env:RPC_URL"
0x000000000000000000000000dcb0a67c43531ec2312869edf67967e06a186570
get owner address
cast call 0x2F2Cb24BaB1b6E2353EF6246a2Ea4ce50487008B "owner()" --rpc-url "$env:RPC_URL"
0x000000000000000000000000d79053a14bc465d9c1434d4a4fabdea7b6a2a94b
define variables for executing commands
0xD79053a14BC465d9C1434d4A4fAbdeA7b6a2A94b = owner address
0x84eBc138F4Ab844A3050a6059763D269dC9951c6 = proxy fccToken address
0xc2132D05D31c914a87C6611C10748AEb04B58e8F = usdt address
0x036423643CEB603B7aff40A05627F09C04b9897E = redemptionPool Address
0xA270aeebCa041C5C7735f7B9cfD9D80527F3EbaE = implementation contract address
0xD79053a14BC465d9C1434d4A4fAbdeA7b6a2A94b = owner address
0x2F2Cb24BaB1b6E2353EF6246a2Ea4ce50487008B = transparentproxy address
Windows Execute Command
$ENCODED_INITIALIZE_DATA = (cast abi-encode "initialize(address,address,address,address)" 0xD79053a14BC465d9C1434d4A4fAbdeA7b6a2A94b 0x84eBc138F4Ab844A3050a6059763D269dC9951c6 0xc2132D05D31c914a87C6611C10748AEb04B58e8F 0x036423643CEB603B7aff40A05627F09C04b9897E)
$CONSTRUCTOR_ARGS = (cast abi-encode "constructor(address,address,bytes)" 0xA270aeebCa041C5C7735f7B9cfD9D80527F3EbaE 0xD79053a14BC465d9C1434d4A4fAbdeA7b6a2A94b $ENCODED_INITIALIZE_DATA)
forge verify-contract 0x2F2Cb24BaB1b6E2353EF6246a2Ea4ce50487008B TransparentUpgradeableProxy --chain polygon --constructor-args $CONSTRUCTOR_ARGS
Windows Execution Results
Start verifying contract `0x2F2Cb24BaB1b6E2353EF6246a2Ea4ce50487008B` deployed on polygon
Submitting verification for [lib/openzeppelin-contracts\contracts/proxy/transparent/TransparentUpgradeableProxy.sol:TransparentUpgradeableProxy] 0x2F2Cb24BaB1b6E2353EF6246a2Ea4ce50487008B.
Submitted contract for verification:
Response: `OK`
GUID: `kw2vsmrfzk4aukmyppbvgy4piitnjlguhha931erswbf61ajg6`
URL: https://polygonscan.com/address/0x2f2cb24bab1b6e2353ef6246a2ea4ce50487008b
I tried for hours(google or ai), but the verification failed.
Contract Address 0x2f2cb24bab1b6e2353ef6246a2ea4ce50487008b | PolygonScan