Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
3 votes
2 answers
944 views

Modify storage in Ganache or Hardhat Network?

I have an orchestrated contract with a function that can only be called by another contract. While struggling to find an elegant solution for writing a unit test, I realised that I could circumvent ...
Paul Razvan Berg's user avatar
2 votes
1 answer
501 views

Request to http://localhost:8545 from https website

I am building a website that should interact (from the browser, not back-end) with custom Ethereum nodes, including local, something like MyEtherWallet. I can connect to ganache http://localhost:8545 ...
Oleg Kondrakhanov's user avatar
0 votes
1 answer
757 views

Manage accounts in Remix Web3 Provider env connected to a TestRPC client node

When I run the TestRPC client (ganache-cli), it provides me with 10 different accounts and private keys along with a local server at localhost:8545 Available Accounts (0) ...
andres_v's user avatar
  • 101
2 votes
2 answers
2k views

Ganache-cli EADDRINUSE 127.0.0.1:8545 error?

when i start ganache-cli with command, it gives this error : ❯ ganache-cli Ganache CLI v6.4.1 (ganache-core: 2.5.3) Error: listen EADDRINUSE 127.0.0.1:8545 at Server.setupListenHandle [as ...
user76333's user avatar
  • 167
2 votes
0 answers
160 views

issue with persistence of blockchain data in ganache-cli [duplicate]

a request for these users (Richard Horrocks, Achala Dissanayake, shane, flygoing ), please read the questions completely and understand them... then answer them if you actually know something about ...
satyendra's user avatar
  • 135
1 vote
2 answers
3k views

ALERT: [ethjs-rpc] rpc error with payload

I am trying to create transaction local blockchain using ganache on When i confirm the transaction i get the error as "{"id":4818399857527,"jsonrpc":"2.0","params":..", please refer screenshot for ...
Ajas Bakran's user avatar
3 votes
1 answer
2k views

ganache-cli doesn't have enough funds to send tx – number increases proportionally to however much I initialize a wallet with

I'm trying to write a simple function to send a transaction using web3 and ethereumjs-tx that empties the wallet of an account (call this account A) into another account (account B). However, no ...
king_geedorah's user avatar
2 votes
3 answers
4k views

Metamask won't display correct balance after creating customrpc for ganache accounts

I made a customrpc network on metamask using the correct server and imported a private key from ganache, which worked but the eth balance is displaying 0 when I expected it to display 100. According ...
Zane Mcain's user avatar
0 votes
0 answers
159 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 : ...
Questioner's user avatar
  • 2,700
0 votes
1 answer
563 views

Truffle test not working when I add migration.js

I have written javascript tests that run fine with truffle test ./test/Token.js However, when I have the following: var UTO = artifacts.require("./uto.sol"); module.exports = function(deployer) { ...
adam's user avatar
  • 97
0 votes
0 answers
143 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; } }...
Poma's user avatar
  • 171
1 vote
0 answers
231 views

How can I watch my contract using Ganache testRPC?

I want to get the transaction hash + contract address ... using Ganache testRPC. since I don't have the option of using etherscan because testrpc of ganache use everything locally.
Tarik EN-NAKDI's user avatar
0 votes
0 answers
404 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) ...
Alex G.P.'s user avatar
  • 1,277
0 votes
0 answers
407 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 ...
maroodb's user avatar
  • 1,121
4 votes
2 answers
1k views

Solidity Error: Exceeds block gas limit

When I start ganache-cli in one terminal window and run ./node_modules/.bin/solidity-coverage (command from documentation) in another I get Error: Exceeds block gas limit at Object....
CodingYourLife's user avatar
1 vote
1 answer
360 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
jeff's user avatar
  • 603
0 votes
2 answers
4k 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 ...
Vlad's user avatar
  • 103
0 votes
1 answer
1k 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 ...
Bing Lan's user avatar
  • 101
7 votes
2 answers
5k 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 ...
Dan's user avatar
  • 279
4 votes
2 answers
2k 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 ...
Chris Staikos's user avatar
14 votes
2 answers
4k 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 ...
jamarcus_13's user avatar