Comments (4)
@cgewecke Just upgraded both packages and the error keeps happening. Here is the stack error:
` Error: Bytecode is not a valid hex string
at hashBytecode (node_modules/@openzeppelin/upgrades-core/src/version.ts:31:11)
at hashBytecodeWithoutMetadata (node_modules/@openzeppelin/upgrades-core/src/version.ts:47:10)
at getVersion (node_modules/@openzeppelin/upgrades-core/src/version.ts:14:24)
at getUnlinkedBytecode (node_modules/@openzeppelin/upgrades-core/src/validate/query.ts:130:33)
at getDeployData (node_modules/@openzeppelin/hardhat-upgrades/src/utils/deploy-impl.ts:48:47)
at async deployProxyImpl (node_modules/@openzeppelin/hardhat-upgrades/src/utils/deploy-impl.ts:72:22)
at async Proxy.deployProxy (node_modules/@openzeppelin/hardhat-upgrades/src/deploy-proxy.ts:35:28)
at async deploySftMarketplaceContracts (test/fixtures/OriumSftMarketplaceFixture.ts:17:32)
at async loadFixture (node_modules/@nomicfoundation/hardhat-network-helpers/src/loadFixture.ts:59:18)
at async Context.<anonymous> (test/OriumSftMarketplace.test.ts:43:101)
`
from solidity-coverage.
@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?
from solidity-coverage.
@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.
from solidity-coverage.
Am going close because in #870 the project is using deployProxy
without problems and they're on the latest version. Issue is likely that deps are a couple years out of date in your project but if you continue to see this after bumping everything please ping and I'll re-open.
from solidity-coverage.
Related Issues (20)
- Small docs Improvements
- Unskip stack-too-deep unit test HOT 1
- Try/Catch should be treated as branch
- 0% coverage when using hardhat-foundry & foundry.toml is present HOT 15
- Add tests for file level function declarations
- feature: track config state in Hardhat cache
- Tracking Issue: using viaIR in versions >= 0.8.7 HOT 2
- Branch coverage decreases after upgrading to 0.8.7 HOT 10
- Verify skipFiles works as expected when using hardhat-foundry HOT 3
- Line Coverage Decreases in v0.8.9 + viaIR=true HOT 9
- Tests Fail when using `hardhat-viem` plugin HOT 5
- zkSync Support HOT 8
- Coverage missing when using solc v0.4.x HOT 2
- Fix zeppelin in CI
- EISDIR error when `paths.sources` directory name contains `.` HOT 2
- Compilation failure when whitespace between `require` and terminating semi-colon HOT 2
- Getting 0% coverage results HOT 2
- Compilation fails when return type is a function HOT 2
- Support for Cobertura XML output HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solidity-coverage.