Giter Site home page Giter Site logo

Comments (4)

dimitrovmaksim avatar dimitrovmaksim commented on May 28, 2024

I think you have to setup the hedera network in the hedera network config

const config: HardhatUserConfig = {
  ...,
  defaultNetwork: "hedera",
  hedera: {
     networks: {
        customNetwork: { ... }
    }
}

and not in the hardhat network config as stated in the readme https://github.com/hashgraph/hedera-hardhat-hethers#configuration

from hedera-hardhat-hethers.

mshakeg avatar mshakeg commented on May 28, 2024

I'm aware of that, however that requires using the @hashgraph/hardhat-hethers plugin. However, I would like to connect to the local hedera json rpc configured directly in HardhatUserConfig.networks as one would for any other local ethereum node e.g. ganache, etc.

const config: HardhatUserConfig = {
  defaultNetwork: "ganache",
  networks: {
    ganache: { // configure hardhat to use local ganache blockchain
      url: "http://127.0.0.1:8545",
      chainId: 1337,
      accounts: [
        ...
      ],
    },
  },
  ...
};

The reason is that using the @hashgraph/hardhat-hethers plugin seems to break other hardhat plugins as I've pointed out in some of the other issues I created: #28 #25

In addition hethers doesn't have all the functionality that hardhat.ethers has, as pointed out in these issues: #30 #29 #27

from hedera-hardhat-hethers.

mshakeg avatar mshakeg commented on May 28, 2024

@dimitrovmaksim is there a reason y'all went this route over enabling standard network configuration within Hardhat? It makes for a terrible dev experience given that an entire ecosystem of hardhat plugins is inaccessible to Hedera devs.

It would be great if we could simply configure a local hedera network like @nomiclabs/hardhat-ganache and have hardhat work like it would using it's own local node or ganache

from hedera-hardhat-hethers.

mshakeg avatar mshakeg commented on May 28, 2024

As shown in the example projects the hedera relay can be configured normally in hardhat networks

from hedera-hardhat-hethers.

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.