Giter Club home page Giter Club logo

Comments (4)

karacurt avatar karacurt commented on August 15, 2024 1

@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.

cgewecke avatar cgewecke commented on August 15, 2024

@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.

cgewecke avatar cgewecke commented on August 15, 2024

@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.

https://github.com/OriumNetwork/orium-rental-marketplace-contracts/blob/e8dbe2bbe5978bb09177e1cbb83f14c97208c545/package.json#L32-L33

from solidity-coverage.

cgewecke avatar cgewecke commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.