-
Notifications
You must be signed in to change notification settings - Fork 269
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
Error: Bytecode is not a valid hex string using OZ upgrades deployProxy #872
Comments
@karacurt Could you try upgrading to the latest version of solidity-coverage (0.8.10) and also make sure your hardhat version is newer, e.g 2.20.0 or higher? If the problem persists could you provide the full stack trace of the error? |
@cgewecke Just upgraded both packages and the error keeps happening. Here is the stack error: ` Error: Bytecode is not a valid hex string
` |
@karacurt Sorry could you also update the zeppelin plugin packages - their latest is two major versions higher. It would be good to see all the relevant packages current before debugging since that's where the error originates. |
Am going close because in #870 the project is using |
I am facing the following error:
Error: Bytecode is not a valid hex string
The error happens when we run
npx hardhat compile
and then runsnpx hardhat coverage
The line in the code is trying to call
upgrades.deployProxy
to deploy an upgradeable contractHardhat version:
"hardhat": "^2.12.6"
Solidity Coverage version:
"solidity-coverage": "^0.8.2",
The text was updated successfully, but these errors were encountered: