[Contract Verification] Unable to verify on etherscan #16
Replies: 1 comment
-
It appears you are trying to verify a contract on the zkSync Era network using the Etherscan block explorer, which is not compatible with zkSync Era. For verifying contracts on the zkSync Era network, you should use the appropriate tools and platforms that support zkSync Era's environment. Here are the steps to verify your contract on the zkSync Era network:
If you encounter issues with the verification process, such as mismatches in bytecode due to compiler settings or the specific version of zkSolc not being supported, you may need to adjust your compiler settings or wait for updates in the zkSync Era's backend to support the latest compiler versions. For further assistance or if you encounter specific errors during the verification process, please refer to the zkSync Era documentation on contract verification or reach out for support through the appropriate channels. Your feedback helps us serve you better. If this fully addresses your question, please give it a thumbs up. If it doesn't, please give it a thumbs down. This will inform the community and team so we can improve our support. |
Beta Was this translation helpful? Give feedback.
-
Environment
Mainnet
Block Explorer
https://era.zksync.network/
Issue Type
Contract Address
0x000000
Compiler Type
Single file
zkSolc Version
1.4.1
Solc Version
0.8.21
Contract Name
Greeter
Contract Code
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
contract Greeter {
string private greeting;
bool private greetingChanged;
constructor(string memory _greeting) {
greeting = _greeting;
greetingChanged = false;
}
function greet() public view returns (string memory) {
return greeting;
}
function setGreeting(string memory _greeting) public {
require(bytes(_greeting).length > 0, "Greeting must not be empty");
greeting = _greeting;
greetingChanged = true;
}
function isGreetingChanged() public view returns (bool) {
return greetingChanged;
}
}
Constructor Arguments
hello
Hardhat Verify Plugin Version
No response
Repo Link (Optional)
No response
Additional Details
No response
Beta Was this translation helpful? Give feedback.
All reactions