We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
UUPSUpgradeable
The coverage report shows no coverage for contracts inheriting UUPSUpgradeable
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.0; import { UUPSUpgradeable } from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol"; // contract CoverMe { contract CoverMe is UUPSUpgradeable { function doSomething() public pure returns (uint256) { uint256 something = 2; return something; } function _authorizeUpgrade(address) internal override { } } contract Fuzz { CoverMe coverMe; constructor() payable { coverMe = new CoverMe(); } function testCoverage() public view { uint something = coverMe.doSomething(); assert(something == 0); } }
2.2.5 (latest master build)
master
Traces: call 0xb4c79daB8f259C7Aee6E5b2Aa729821864227e84::doSomething() (../Fuzz.sol:24) └╴← (2)
The text was updated successfully, but these errors were encountered:
Turns out the issue was caused by this Foundry setting:
bytecode_hash = "none"
https://book.getfoundry.sh/reference/config/solidity-compiler#bytecode_hash
Sorry, something went wrong.
No branches or pull requests
Describe the issue:
The coverage report shows no coverage for contracts inheriting
UUPSUpgradeable
Code example to reproduce the issue:
Version:
2.2.5 (latest
master
build)Relevant log output:
Traces: call 0xb4c79daB8f259C7Aee6E5b2Aa729821864227e84::doSomething() (../Fuzz.sol:24) └╴← (2)
The text was updated successfully, but these errors were encountered: