Git Product home page Git Product logo

Comments (2)

davidmurdoch avatar davidmurdoch commented on August 17, 2024

Hey, so the following code creates a javascript client only (without the webserver). Perhaps that's the issue?

const provider = ganache.provider({mnemonic: process.env.GANACHE_CLI, network_id: process.env.NETWORK_ID});

If you want to launch via docker you'll need to pass ganache-cli options through the docker container. See: https://github.com/trufflesuite/ganache-cli#docker

from ganache-cli-archive.

sfl0r3nz05 avatar sfl0r3nz05 commented on August 17, 2024

Hey @davidmurdoch,

To deploy successfully ganache on docker-compose, I recommend this configuration:
image

To interact with ganache, i recommend to use websocket to recover events:

const Web3 = require("web3");
const web3 = new Web3(ws://${process.env.HOST_PROVIDER_GANACHE}:${process.env.PORT_PROVIDER_GANACHE});

Also it works with http, however, this configuration it is not able to decode events.

from ganache-cli-archive.

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.