New answers tagged ganache
0
I had a similar issue that seem to be fixed by making sure I had ganache-cli running before trying to connect to it in the GUI. I also had to choose the host type of "0.0.0.0"
0
I am not an expert in the subject but I think your app can be deployed to heroku and use Ganache as the blockchain network as long as the user has ganache installed on their local machine. I will try myself and update here if I am successful.
0
You should (almost) never use sudo with npm. Once you do so the folders and files npm touches/creates are now locked to the root user only.
The simplest solution is to do sudo rm -rf node_modules for whatever project you are currently in. Similarly, you may have to do something akin to sudo rm -rf $(npm prefix -g)/{bin,lib/node_modules} in case you globally ...
0
Just refresh the page once. Metamask does not respond instantaneously. Also there were some variable name errors in the code (like using candidatesCount instead of Candidate), that I corrected.
1
Just to add into Shane's answer, if you are testing with ganache-cli,
you can also do this:
const ganache = require('ganache-cli');
const Web3 = require('web3');
const options = { a: 100 }; // NO OF ACCOUNTS
const provider = ganache.provider(options);
const web3 = new Web3(provider);
I hope that helps.
0
So @sergi Juanati was correct my spelling was super off. However, that wasn't the reason I wasn't getting anything returned not even an error. The reason is for some reason running
truffle test
wasn't running the actual test. No matter which directory I was in it was not running the test so I had to specify it myself. I appreciate all the help!.
0
I see at least a couple of issues to be addressed:
You should replace artificats by artifacts
You should use the correct variable when creating the new contract instance. In your case, Auction instead of Go.
In summary:
const Auction = artifacts.require('./implementor.sol');
contract('Go',(accounts) => {
let Go;
beforeEach(async () => {
...
Top 50 recent answers are included
Related Tags
ganache × 396truffle × 147
solidity × 108
web3js × 97
metamask × 39
go-ethereum × 36
remix × 35
truffle-migration × 23
testrpc × 21
testing × 21
ganache-cli × 21
javascript × 20
contract-development × 19
blockchain × 16
nodejs × 16
web3.py × 16
truffle-contract × 14
truffle-test × 14
transactions × 13
private-blockchain × 13
contract-deployment × 12
dapps × 12
ethereumjs × 12
gas × 11
ethereum-wallet-dapp × 10