The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [ganache]

For questions about using the Ganache personal blockchain testing environment.

Filter by
Sorted by
Tagged with
1
vote
0answers
375 views

“truffle migrate” running all migrations everytime

I have a very weird behavior happening whenever I run "truffle migrate". Ideally, as per the documentation, it states: This will run all migrations located within your project's migrations ...
0
votes
1answer
811 views

how to solve VM Exception while processing transaction: out of gas

i am trying to call this function with help of web3.js in ganache testrpc but it is giving me error of VM Exception while processing transaction: out of gas i have tried to increas gas of ganache to ...
2
votes
1answer
242 views

Why would Ganache behave differently depending on geth, web3j, web3js and web3.py?

I have a smart contract token deployed in a Ganache instance. My dapp written with React and web3.js shows the same 10 accounts for eth.accounts as running the same command in the geth console. If I ...
0
votes
1answer
2k views

Cannot read property 'deployed' of undefined issue

I am trying to launch an Election-Dapp. I have these dependencies installed: - Nodejs v9.11.1 - npm v5.8.0 - Truffle v4.1.3 - web3js v0.2 - ganache-cli Below is my solidity contract pragma ...
2
votes
1answer
168 views

What are the other 2 mnemonics represent for when I launch ganache?

I download the Ganache on Windows, it gives me 10 accounts and 12 mnemonics when I launch it, I think that the first 10 mnemonics are represent for 10 accounts, but what are the other 2 mnemonics "...
2
votes
3answers
362 views

Want to run a local fork of Ropsten

I would like to run a local fork of Ropsten to interact with some of the smart contracts without having to fill up from the tap. My plan was to start a light parity node as follows: parity --chain ...
3
votes
1answer
93 views

Error when deploying contract having struct with many strings

I am using Truffle with Ganache and MetaMask. I have a struct in my contract containing many fields as string data type struct User { string firstName; string lastName ...
0
votes
1answer
426 views

VM Exception while processing transaction: invalid opcode

I am trying to save string into a contract and hit this error. My contract is pragma solidity ^0.4.18; contract MyRecord { address owner; address guest; string note; modifier ...
0
votes
1answer
3k views

Gas estimation error

I have created a contract on remix.ethereum.org and started the Ganache(http://truffleframework.com/ganache/) as private blockchain. On the Remix I have configured Remix to work with Ganache through ...
0
votes
1answer
225 views

Debugging smart contracts through a dApp using Ganache+MetaMask, any suggestion?

I'm debugging a smart contract through a dApp I built. The contract I'm building has some adding and some removing. When I add something, everything works, but when I remove stuff then something ...
0
votes
1answer
1k views

Issues running ganache-cli command options

So I open ganache-cli on one window. And from ganache-cli github repo I can see all those command options, but don't understand where to run them..
1
vote
0answers
90 views

Using Ganache UI: Is there a way to find the names of the smart contracts?

I realize this might be a limitation of Ethereum blockchain itself, but I thought that once I migrated a contract to Ganache I would be able to see the names, methods and method arguments of the ...
2
votes
1answer
118 views

Branch a Truffle test into various Ganache blockchain states

I am currently testing a contract that can evolve in different ways, depending on the interaction between parties. But all these possible scenarios share the same initialization. So, the question I ...
0
votes
1answer
61 views

Calling overloaded function from geth client

Attaching a geth client to a ganache-cli instance: $ geth attach http://localhost:8550 Welcome to the Geth JavaScript console! instance: EthereumJS TestRPC/v2.0.2/ethereum-js coinbase: ...
2
votes
1answer
158 views

Is there any specific configuration needed for Oraclize ethereum-bridge to support oraclize_newRandomDSQuery()?

I am using ganache-cli and ethereum-bridge in order to test oraclize locally. Other calls to oraclize, such as oraclize_query("URL","..."), work just fine. I am only having trouble with ...
5
votes
2answers
1k views

How to properly simulate mining time with Ganache CLI

I am using the Ganache CLI for testing my smart contracts and frontends. I need a way to incorporate a delay into ganache-cli when performing write transactions in order for it to more closely ...
0
votes
2answers
274 views

Metamask Transaction does not appear in Ganache

I'm trying to call the storeQueryResults() function of my smart contract in the following way: storeInput: function(event) { var queryResultHandlerinstance; App.contracts.QueryResultHandler....
1
vote
3answers
824 views

Using ganache-cli provider causes “Error: Provider not set or invalid”

I'm trying to write and run tests for my smart contract and I get this error: "Error: Provider not set or invalid" Smart contract code: const assert = require('assert'); const ganache = require('...
0
votes
1answer
211 views

“Error: invalid address” for dapp, works on geth (Ganache)

I have a contract that creates another contract in a function. I am testing the contract using Ganache. When calling this function using geth, it works fine. But when calling it using my dapp (yeoman, ...
2
votes
1answer
183 views

Contract Deployed via Truffle doesn't work, Remix deployed contract does work. Why?

So, I am developing (or trying to) with Truffle against ganache. When I do "truffle migrate" I get: Using network 'development'. Running migration: 1_initial_migration.js Replacing Migrations......
3
votes
1answer
504 views

Ganache/Web3: “Key not found in database”

I am using Ganache CLI v6.1.0 (ganache-core: 2.1.0)) (started with default settings by running simply ganache-cli), web3 (^1.0.0-beta.33), and my smart contract is written for solidity ^0.4.0. I have ...
1
vote
1answer
76 views

Unable to write data into blockchain - Ganache

I've this contract and web3js html GUI that's interacting with it. The contract is deployed in ganache at localhost 8545 and unable to write data into blockchain. SimpleStorage.sol - pragma ...
1
vote
0answers
213 views

Simple Bool Assignment runs out of Gas- can't figure out why?

I'm testing using Remix against web3 provider (Ganache). Here is my code: when "Startup = false" is uncommented, it runs out of gas. It works fine on Javascript VM in Remix, but not on Ganache ...
4
votes
4answers
462 views

Truffle Drizzle-box fails with TypeError: (0 , _drizzle.generateContractsInitialState) is not a function

Right after unboxing Drizzle-box I'm getting a TypeError: (0 , _drizzle.generateContractsInitialState) is not a function. Ganache is running on localhost:8545, contracts are deployed, Metamask ...
2
votes
1answer
831 views

why connect to local ganache doesn't need contract address [duplicate]

Here is my code: $.getJSON('Adoption.json', function(data) { // Get the necessary contract artifact file and instantiate it with truffle-contract var AdoptionArtifact = data; App....
0
votes
1answer
222 views

Cannot use Metamask with my smart contract

I am unable to call my smart contract in Metamask over Ganache. These were the steps I took: developed the contract tested it successfully using truffle test set up a Ganache network and migrated ...
2
votes
1answer
957 views

Can I save my Ganache private blockchain instead starting a new one every time?

Every time I turn my computer off or even change settings on Ganache (I need to restart) I lose the state of the blockchain and it creates a new one, I have to redeploy my contracts, etc. Is there a ...
11
votes
1answer
3k views

Truffle's Ganache VS Testrpc

Is there any major difference between Truffle's Ganache and TestRPC? Do they run irrespective of each other as test blockchains, are there any side effects running both at same time? Is the only ...