Motoma
  • Member for 3 years, 4 months
  • Last seen more than a month ago
Fatal: Error starting protocol stack: listen tcp: lookup ”localhost”: no such host
Accepted answer
3 votes

While I can't answer why you're getting this specific error, what I can tell you is that specifying --rcpaddr localhost is unnecessary as localhost is the default rpcaddr value. If I were to take a ...

View answer
How to withdraw ETH from Contract to Owner wallet?
3 votes

This should be as simple as invoking the withdraw() method on your smart contract using the owner account. This would be the account that put the contract on the network, unless you've invoked the ...

View answer
Different address with single mnemonic phrase
Accepted answer
2 votes

Your problem resides on lines 7 and 8 where you are feeding the seed hex into the fromMasterSeed function. What you should be doing is feeding the raw seed in. When you do so, you end up with ...

View answer
Truffle test error: deducts the amount from the allowance
Accepted answer
1 votes

I think your problem is on line 88, where the comment above states the test should approve the transfer of 10 tokens, you actually approve 15. This accounts for the test discrepancy of actual: 5 vs ...

View answer
Historical state in mainnet EVM
1 votes

Disclaimer: I can't answer if Geth or Parity provide this functionality, but I assume there is a way to do this. What I can tell you is that Ganache does allow you to do this, and the Truffle team ...

View answer
Confusion between MetaMask enabled and Disabled
1 votes

Your guess is entirely right. The truffle box code is configured to use the web3 provider injected into the browser through plugins first (MetaMast, Mist, Toshi, etc.), but there is a fallback which ...

View answer
Explanation of Geth's Command Line option: targetgaslimit?
Accepted answer
1 votes

Disclaimer: I'm assuming an understanding of what gas is. The gas limit is the maximum amount of gas that could be spent during an Ethereum transaction. This number is not fixed--early on in the ...

View answer
Trying to understand why my test.js fails
0 votes

The problem you're encountering is that functions which modify the state of code won't directly return state when invoked from Web3. If you were to change test2's type to view or pure, your tests will ...

View answer
initialise array of struct inside a new struct
0 votes

As the error message asserts, this isn't something Solidity supports yet. One of the common patterns instead is to store a separate array of Votes, and maintain an index into those (using uint256[]) ...

View answer
Unable to install web3 js for windows10
0 votes

Your version of npm is out of date. Upgrading should be as simple as running npm i -g npm.

View answer
Truffle can not find artifacts
0 votes

Running truffle migrate requires the Migrations.sol that comes with truffle init or truffle unbox. You won't be able to run migrations without it since that is how the migrate tools track the current ...

View answer