Questions tagged [ganache]

For questions about using the Ganache personal blockchain testing environment.

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

Using transfer() method but don't see payment in Ganache or Metamask?

I'm using the .transfer() method in my smart contract to pay a particular address. I've checked the Ganache logs and the transaction does not revert and is auto-mined successfully. But I don't see a ...
0
votes
3answers
83 views

Truffle wrapper

ExampleContract { address public miner; constructor(){ address miner = msg.sender; } } I am using truffle and ganache-cli and I executed the following command: truffle migrate --...
0
votes
1answer
165 views

Can I get geth.ipc if I use ganache-cli to deploy a default private test ethereum env

When I test my golang code which subscribes/filter/parse log from a local ethereum test env built by myself, The way I communicate with eth is by using geth.ipc. But another test env is based on ...
0
votes
1answer
225 views

Truffle develop vs Ganache. Is there a reason to prefer one over the other?

Now that Ganache is usable, I don't see a reason to use truffle develop anymore. Is there still a scenario where the latter is preferred?
0
votes
1answer
85 views

Create a new contract from other contract by connecting to ganache-cli

I am trying to create a contract from other contract on gnache-cli using remix web3 provider but getting following error: VM Exception while processing transaction: revert The issue is that when I ...
0
votes
1answer
187 views

Basic token transfer and unit test

I am having trouble testing a very naive transfer method for my coin, based off of the ethereum.org demo coin. I've simplified it down into the essentials, yet my solidity unit test keeps failing. ...
0
votes
0answers
77 views

Remix and ganache-cli | Contract override

I have a problem when developing in Remix and using my testnet as a blockchain. I have a contract that connects through an interface with an standart ERC20 contract. Everything works fine until I ...
0
votes
1answer
423 views

How can we assign unique hash id to the id that created inside our smart contract in ethereum?

I am using truffle, ganache and web3. I am initializing user id in smart contract while deploying the smart contract. As of now, everything is done by account[0] of Ganache. Now, I want functionality ...
0
votes
0answers
103 views

How to be sure “ethereumjs” is installed?

I installed ethereumjs library using following command: npm i ethereumjs-testrpc And here is the output: And then I tried to run an html example which uses ethereumjs-vm. The example is here : ...
0
votes
1answer
390 views

Ganache and truffle - how to set zero deployment fees

I am running a local ganache-cli node on my machine and would like to have zero transaction fees. For this reason I am starting the node using ganache-cli -g 0 which sets the gas price to zero. ...
0
votes
0answers
87 views

Unable to check for msg.value

Here is my code: pragma solidity ^0.4.24; contract TRY{ uint public temp=0; function transfer_ether() public payable{ require(msg.value>=60); temp=60; ...
0
votes
1answer
238 views

Ganache not working

I am developing on a testnet on ganache and using remix. I am working with web3 and working on the user interface. when trying to fetch a function with web3/ganache, I get the following error: "...
0
votes
0answers
19 views

How to use bytes to get the same hashed output [duplicate]

I previously asked a question here: link to previous question. Found out the answer is to use string instead of bytes here: pragma solidity ^0.4.18; contract C { bytes32 public temp; ...
0
votes
1answer
337 views

adress.transfer fails in ganache

I am calling address.transfer() from the one of the deployed contract. While, this works fine with remix(JavaScript VM environment), the same fails if I deploy and run the same contract on 'ganache'. ...
0
votes
1answer
51 views

Gas amount to store a contract?

i'm trying to run truffle migrate and it gives me always this error. Error: The contract code couldn't be stored, please check your gas amount. MBP-de-Alicia-2:smartContracts alicialombarte$ truffle ...
0
votes
0answers
81 views

Why account balance can decrease when gasPrice is 0 and msg.value is 0?

It also spends pretty large amount, which doesn't seem to be related to gasUsed Contract: pragma solidity ^0.4.24; contract Test { bool i; function hello() public { i = true; } }...
0
votes
0answers
213 views

Ganache cli transaction hash collision

I am making couple of forwarding transactions (i.e. to contract address that just receives funds and proxifying it to main contract) locally on Ganache CLI running (old testrpc does the same result) ...
0
votes
0answers
221 views

Smart contract storage doen't work with ganache

I have this smart contract contract Ballot { struct Prop { uint votes; bytes32 data; address[] validators; } mapping (bytes32 => Prop) props; function ...
0
votes
1answer
683 views

How to call Smart Contract functions?

i'm deploying a smart contract which contains several functions as well as properties. The ABI looks as follows: [ { constant: false, inputs: [Array], name: 'vote', outputs: [], payable: ...
0
votes
2answers
137 views

Fetch the last state of particular asset for particular date

I have one smart contract, in which I am doing mapping of machine id and user id mentioned as below: mapping(bytes32 => uint256) public machineAllocs; machineAllocs[machineId] = userId; Now, I am ...
0
votes
1answer
232 views

which wallet is usable with ganache test-rpc?

I tried metamask, but unable to send ether between accounts because metamask is trying to estimate gas and gets stuck :( myetherwallet doesn't save my seed so I need to enter it all the time
0
votes
1answer
1k 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 ...
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..
0
votes
1answer
70 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: ...
0
votes
2answers
379 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....
0
votes
1answer
311 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, ...
0
votes
1answer
252 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 ...
0
votes
2answers
3k 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 ...
-1
votes
1answer
51 views

Truffle ganache error

I have this error~! Contract has not been deployed to detected network (network/artifact mismatch) Can you help me thank you!
-2
votes
2answers
88 views

Can I make a proper website by using ganache and truffle? Like maybe abc.com?

I have developed a voting system usinh dapp that runs on local host. It uses accounts from ganache and metamask for transactions of votes. Now if i want to buy a domain and make the thing work, is it ...

1
4 5 6 7
8