-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug(forge script): contract created by constructor fails to be verified #6023
Comments
For future reference and additional details: OP is correct that this is an issue
/**
* @dev Initializes an upgradeable proxy managed by an instance of a {ProxyAdmin} with an `initialOwner`,
* backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in
* {ERC1967Proxy-constructor}.
*/
constructor(address _logic, address initialOwner, bytes memory _data) payable ERC1967Proxy(_logic, _data) {
_admin = address(new ProxyAdmin(initialOwner));
// Set the storage value and emit an event for ERC-1967 compatibility
ERC1967Utils.changeAdmin(_proxyAdmin());
} Log:
|
@zerosnacks I have the same problem, but with a slight difference: |
Is this only happening on holesky? I was able to manually verify I was also able to successfuly verify such deployment on sepolia |
so it seems that this is indeed an Etherscan bug. I was only able to reproduce this on Holesky. Verification is failing during both script execution and if trying to verify manually through however, if you run |
Previously have some issue on Holesky, but now it is fixed. Thanks |
Confirming this is no longer an issue on Holesky, marking ticket as |
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (f9ca6ec 2023-10-09T00:31:35.276575000Z)
What command(s) is the bug in?
forge script script/proxy2.s.sol:CounterScript --rpc-url $HOLESKY_RPC_URL --broadcast --verify -vvvv
Operating System
macOS (Apple Silicon)
Describe the bug
Submitted contract for verification:
Response:
OK
GUID:
r2guhchw9zuqmd77wngnkbdfn6719m9esaemenrzmprhetwkat
URL:
https://holesky.etherscan.io/address/0xd2cee67865574f35d794f3093c3ff0d2f16b8c1b
Contract verification status:
Response:
NOTOK
Details:
Pending in queue
Contract verification status:
Response:
NOTOK
Details:
Fail - Unable to verify. Compiled contract deployment bytecode does NOT match the transaction deployment bytecode.
Contract failed to verify.
Inherit the contract, the contract created inside the constructor failed to verify
The text was updated successfully, but these errors were encountered: