Questions tagged [ganache-cli]

Ganache CLI, part of the Truffle suite of Ethereum development tools, is the command line version of Ganache, your personal blockchain for Ethereum development.

Filter by
Sorted by
Tagged with
0
votes
0answers
2 views

Ganache UI infinite spinner / workspace not accesable

I have been using Ganache UI for over a year now on CentOS7. But last week it hadn't been working correctly. Whenever I create a new Workspace and add a project, the UI gets stuck For example: I open ...
0
votes
1answer
10 views

Ganache-cli Not Working properly WSL 2

I installed npm install -g ganache-cli on my WSL, but when I entered ganache-cli, it is showing me this error. Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:...
0
votes
0answers
9 views

Beyond ethereum stackexchange what are the other good resources for asking questions regarding truffle, ganache-cli, babel and solidity?

Beyond ethereum stackexchange what are some good resources for asking questions regarding truffle, ganache-cli, babel and solidity? Starting working on blockchain development need information on good ...
0
votes
1answer
42 views

How to run Truffle Solidity tests in Gitlab CI?

Here is my .gitlab-ci.yml file, inspired by @GrandFleet's answer: image: node:latest cache: paths: - node_modules/ stages: - test test_async: stage: test services: - trufflesuite/...
0
votes
0answers
15 views

Ganache-cli server and Webjs not connecting : Returned values aren't valid, did it run Out of Gas?

I am trying to connect web3js in the javascript section of my html to my ganache-cli nodejs server ganache deployment script: const ganache = require("ganache-cli"); const Web3 = require(&...
0
votes
1answer
169 views

Ganache-Cli Error: Digital Envelope Routines Unsupported

When running the command ganache-cli in Git Bash, I get the following error. I have already installed Truffle and Ganache-Cli, and I've even tried on Powershell and the Windows command prompt (all ...
0
votes
0answers
22 views

ganache-cli command not found

I tried installing ganache-cli with yarn. Even though yarn has successfully installed ganache-cli, I bash can't find the ganache-cli. smakbar@OMEN:~/cryptoCurrencies/web3$ yarn global add ganache-cli ...
0
votes
1answer
78 views

How to add polygon fork network to brownie with correct chain-id

I want to add a forked network to brownie. If i do it like this: brownie networks add development polygon-main-fork-dev cmd=ganache-cli host=http://127.0.0.1 chainid=137 fork='https://polygon-mainnet....
0
votes
0answers
71 views

web3.currentProvider.send() - eth_signTypedData with Truffle and Ganache

I am calling web3.currentProvider.send(). const params = [permitParams, defaultAccount]; const method = 'eth_signTypedData'; var result = await web3.currentProvider.send({ method, params, ...
0
votes
1answer
160 views

TypeError: this._deployData.startsWith is not a function

I'm trying to deploy my smart contract that compiled without any problem and stored all the compiled data in two separate files. Then I'm requiring the ABI and bytecode and tries to deploy it. I get ...
0
votes
0answers
16 views

iam getting brownie compiler error while running lottery in brownie test network

PS E:\smartcontract-lottery> brownie test --network mainnet-fork INFO: Could not find files for the given pattern(s). Brownie v1.16.4 - Python development framework for Ethereum Compiling contracts....
0
votes
0answers
29 views

Uniswap Prices are not being updated when forking mainnet

I'm writing a bot interacting with uniswap contracts to get data from the pool reserves. I'm using ganache-cli to fork mainnet to do so. When I'm using infura as a websocket provider, everything is ...
0
votes
0answers
26 views

UniswapV2Router02 contract's function are failing on forked mainnet

I have forked the mainnet with the ganache-cli --fork <node_url> and I am trying to interact with the UniswapV2Router02 (for eg. the Sushiswap's one), however when I try to do a swap as follows: ...
0
votes
0answers
94 views

Cannot run the script through Brownie 'deploy.py' [duplicate]

I've been following the amazing tutorial on Blockchain/Python/Solidity and I'm stuck on the first steps of using Brownie. I'm operating on Windows 10, I have pipx, yarn and ganache-cli installed as ...
0
votes
1answer
18 views

Does "ganache" implements the specification in the Yellow Paper?

I wondered whether ganache, which produces a blockchain on my machine and is used for development, implements the Etherum yellow paper protocol. Please follow my line of logic: That is when the ...
0
votes
1answer
62 views

Ethereum fork on Ganache: ran out of gas

what I'm trying to do is to fork the Ethereum Mainnet on my local ganache blockchain in order to interact with smart contract like Uniswap on my local machine. I forked the Ethereum network using ...
0
votes
0answers
117 views

How do I set initial supply for a ERC-1155?

In my smart contract I set 2 different token types: uint256 public constant COIN = 0; uint256 public constant OBJECT_NFT = 1; And my constructor has the initial mint for a specific address, but when ...
0
votes
0answers
79 views

Ganache throws "Invalid JSON RPC response" when trying to fork mainnet from full geth node

I have full Ethereum node running GETH 1.10.10-stable-bb74230f and when I try to fork mainnet from it with Ganache it fails with: Error: The fork provider errored when checking net_version: Invalid ...
0
votes
0answers
15 views

Getting an error when using methods.myMethod.call() with web3js

I am getting an error trying to call an existing smart contract function using call(). The error is "Returned values aren't valid, did it run Out of Gas? You might also see this error if you are ...
0
votes
0answers
81 views

ganache-cli cmd not fpund even after "npm i -g ganache-cli" #brownie

$ brownie run scripts/1_deploy_easy_token.py INFO: Could not find files for the given pattern(s). Brownie v1.16.4 - Python development framework for Ethereum Erc20BrownieProject is the active project. ...
2
votes
2answers
407 views

deploying smartcontract to ganache-desktop instead of ganache-cli with brownie

i have a smartcontract developed with brownie. I want to deploy it to ganache. If i run my deployment script brownie run scripts/deploy.py, brownie deploys the smartcontract with ganache-cli. But i ...
0
votes
1answer
17 views

deploying dydxexchange/solo: '"OperationImpl" ran out of gas'

I'm trying to deploy the 'solo' (https://github.com/dydxprotocol/solo) After cloning git@github.com:dydxprotocol/solo.git and resolving all dependencies Contracts compilation is successful, however ...
0
votes
0answers
80 views

'ganache-cli' is not recognized as an internal or external command, operable program or batch file

I already installed ganache as: ` C:\Users\Henry Alberto\Desktop\GenerativeArtPython>npm install -g ganache-cli C:\Users\Henry Alberto\AppData\Roaming\npm\ganache-cli -> C:\Users\Henry ...
1
vote
1answer
34 views

Why contract deployed return property contract.options.address null

Why contract deployed return property contract.options.address null. Inbox.test.sol const assert = require('assert'); const ganache = require('ganache-cli'); const { send } = require('process'); const ...
0
votes
0answers
94 views

Brownie - Contract.from_explorer is not working - What else can I try?

I'm working with the Balancer Vault Contract, address: 0xBA12222222228d8Ba445958a75a0704d566BF2C8 I was running tests and they were failing, the error was 'SourceUnit' object has no attribute 'name' I ...
0
votes
1answer
74 views

Contract has not been not deployed to detected network

I'm trying to access a smart contract in my local dev environment, but it doesn't appear to be deploying fully. In summary, I get what seems to be a successful migration, however, I am not able to ...
0
votes
0answers
31 views

Can i use a full node data to fork a new chain using ganache-cli

I am trying to use the forking feature of ganache-cli to get a dry-run version of an EVM-compatible blockchain. my issue is that after a while of running ganache-cli with the --fork option, all ...
5
votes
2answers
802 views

How does the ganache-cli --fork work?

I am trying to fork a chain with ganache for dry running transactions. But I still can't understand it exactly, so here are my questions : Q1: does it download the whole blockchain? or just a minimal ...
0
votes
1answer
67 views

Ethereum DApp with user authentication

I'm creating a healthcare DApp and how can I create user authentication ( For Doctor and Patient). I'm using JavaScript and HTML for most of my UI.
1
vote
1answer
920 views

ModuleNotFoundError: No module named 'brownie._cli'

After installing python3, ganache-cli, upgrading pip to pipx and installing eth-brownie.. I am receiving errors when trying to use "brownie". I followed all of the steps in their docs ...
0
votes
1answer
367 views

Timeout error while attempting to migrate in the ganache-cli

I'm trying to deploy the smart contract using ganache-cli local blockchain server. I started the ganache-cli server and this is how my truffle-config.js file looks like... Truffle-config.js module....
0
votes
1answer
40 views

Error while supplying test assets to the compound protocol using infura project, ganache-cli and web3.js

I'm trying to supply assets to the compound protocol using this guide: Supplying Assets to the Compound Protocol. I created account at https://infura.io/ and got my ProjectID. I cloned https://github....
1
vote
1answer
145 views

How to use truffle HDWalletProvider to get more then 10 addresses with funds for test purpose

How do I need to call HDWalletProvider to get for example 50 addresses with funds? The networks part in my truffle.js configuration file looks like this: networks: { development: { provider: ...
1
vote
1answer
206 views

Ganache gives error when I try to mint token to wallet after contract deploy

i use: python 3.5, docker, ganache (image image: trufflesuite/ganache-cli:v6.9.1) what do i do: (simplified example) I have two container: container with ganache and container with general logic. ...
1
vote
2answers
3k views

How to fork the binance chain?

How can I have a local copy of the binance chain for use in ganache like to use BNB as default coin instead ETH? I see here Ganache -f how can I fork the whole chain? that I must provide -f parameter ...
0
votes
0answers
49 views

Not able to connect ganace to metamask

Not able to connect metamask with ganache-gui. I tried two different app images : ganache app image : ganache-2.5.4-linux-x86_64 and ganache-2.4.o-linux-x86_64 , neither seem to work . With ganache-2....
2
votes
1answer
2k views

uniswap solidity contract: swapExactTokensForTokens Failed in my own smart contract

I am using sushiswap to transfer weth to dai. Everything goes fine when I use web3.js to call swapExactTokensForTokens directory. However, thing goes wrong when I try to include the ...
0
votes
1answer
594 views

How do I efficiently install truffle and ganache-cli in a docker container?

Say I want to run a container with ganache-cli and truffle globally installed for dev purposes. I have this first attempt Dockerfile FROM node:15-alpine RUN mkdir -p /home/node/app WORKDIR /home/...
0
votes
0answers
175 views

Ganache -f how can I fork the whole chain?

Im developing locally but I need a full copy, Im using ganache for local dev, also providing -f option to fork another blockchain (BSC), is it possible to download the complete chain somehow?
0
votes
1answer
219 views

Truffle console call contract without ABI (Ganache Forked BSC)

So I started Ganache-cli with -f option to fork the BSC (ETH FORK), and in the truffle console I want to interact with some smart contracts that are not mine nor I deployed them, how can I interact ...
0
votes
0answers
379 views

MetaMask: ALERT: Transaction Error. Exception thrown in contract code

I'm working with ganache, drizzle and Vue on a decentralized app. I have a simple contract IPFSStore which contains the following function: function changeStatus(address owner, string memory ...
1
vote
1answer
74 views

Changing contract property to public increases gas costs

I am following kind of an outdated tutorial and trying to adapt it to the more recent changes in Solidity and other packages. Following one of my changes, I am running into a problem that I can't find ...
2
votes
2answers
4k views

Metamask not connecting to ganache localhost

I am running a local ganache-cli and my metamask in my browser just keeps saying: Oops! Something went wrong. Here are the network details: name: Localhost RPC URL: http://localhost:8545 Chain ID: ...
0
votes
0answers
945 views

Debugging reverted BSC transaction that fails only through ganache-cli

I have a Truffle migration that deploys and configures a set of smart contracts on BSC (Binance Smart Chain). When running the migration on the actual network, it works fine. However, when I try to ...
0
votes
0answers
490 views

Error: VM Exception while processing transaction: revert UniswapV2: LOCKED

I am using this repo to begin testing UniSwap flash swap contracts. I've installed all dependencies correctly and cleanly. The project uses ganache-cli, hardhat buidler, and yarn in the terminal and I ...
1
vote
1answer
65 views

gasless contract deployment with ganache-cli

I have runned ganache-cli with this command: $ ganache-cli --port 8545 --gasLimit 12000000 --accounts 10 --hardfork istanbul --mnemonic test I have create a truffle project with this command: $ ...
0
votes
0answers
512 views

Always same INSUFFICIENT_OUTPUT_AMOUNT error

I've been trying to swap some DAI which I sent to the contract to WETH. However even after trying to change the contract a bit I always get the same error output: transact to GibIhmHart.runUniswap ...
0
votes
0answers
65 views

trying to send some tokens from unlocked account

So I'm trying to send some tokens from an, with ganache-cli unlocked, address to mine to try something out, however for my code to work I need some starting amount of the initial token. Is there some ...
4
votes
0answers
295 views

How to continuesly fork mainnet on latest block

How do I keep the fork mainnet use the latest block using web3? I need to fork mainnet to latest block before I send the transaction What originally i do is just run the ganache fork command which ...
3
votes
1answer
3k views

Not able to interact with Ganache-cli: "-bash: ganache-cli: command not found"

I've already installed ganache-cli with sudo npm install -g ganache-cli on my MacOS but I am not able to interact with it through my terminal. I always get the error: -bash: ganache-cli: command not ...