Most Popular
1500 questions
13
votes
4 answers
How to set the timeout for truffle test's before block?
I'm running my tests on a private chain and some of them times out:
1) "before all" hook:
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
I tried to set…
szerte
- 1,231
- 1
- 14
- 32
13
votes
5 answers
Geth Console - Sleep after mining a block?
I am running a local testnet with a low mining difficulty to test my contracts, and I am conscious that when I start another mining geth instance the total computation will hog my CPU.
My question is - is there a way of making the geth miner sleep…
billett
- 1,255
- 1
- 12
- 18
13
votes
3 answers
How can we write a contract that relies on hidden information?
Since a smart contract can only access (public) information on the blockchain itself, how can I make a smart contract that relies on hidden / secret information? Are there any workarounds in this situation?
J-B
- 8,941
- 16
- 46
- 77
13
votes
5 answers
How do I find the exact solidity compiler version used by truffle?
I'm trying to verify a contract I have compiled and deployed onto the network using Etherscan. The contract was compiled using truffle. How do I work out exactly which version of the solidity compiler to select on Etherscan?
Joe
- 291
- 1
- 2
- 8
13
votes
3 answers
How to Start solidity programming after installing plugin in Intellij idea
I installed plug-in 'Intellij-Solidity' in Intellij Idea. But I did not found any new project option to create . Is there any environment setup for solidity programming. I use Ubuntu 16.04 LTS .
Gopal ojha
- 2,259
- 2
- 11
- 21
13
votes
2 answers
What happens if MyEtherWallet will go offline?
I created a wallet on myEtherWallet. Let's assume that in the future this website doesn't exist anymore.
Is there any way to access my ether? Or will they be gone in the blockchain?
rethsid
- 1,898
- 3
- 18
- 30
13
votes
5 answers
why did it returned null after call miner.start()
> miner.start()
> null
before it , I had created a account like this .
user1 = eth.accounts[0]
"0xb62f0bae52d153365661c4e23ab1d594484e9bef"
Mike
- 131
- 1
- 1
- 3
13
votes
2 answers
Why does an empty message still invoke the code of the contract?
An empty message still invokes the code of the contract and is the mechanism that allows Solidity to implement a feature of a fallback function per contract.
But when msg.data is empty, why does contract code still need to execute?
If a caller…
eth
- 85,679
- 53
- 285
- 406
13
votes
4 answers
Simulating the passage of time with testrpc
Any tips on how to simulate real network conditions on the testrpc testing client using truffle? I have some functions that look at blocknumber and try to deal with passing time. Has anyone come up with a good way to test these kind of things?
I'm…
Austin Fatheree
- 409
- 6
- 11
13
votes
1 answer
Can I run Geth without syncing?
I want to test some api calls using web3.js and so I am using geth as HttpProvider. Can I start geth without the syncing?
Is something like geth --nosync --rpc available?
niksmac
- 9,673
- 2
- 40
- 72
13
votes
1 answer
Parity account addresses all having prefix 0x00
After creating multiple new accounts with the Parity wallet (v1.6.6), I notice they all have the address prefix 0x00 (the 0x part being the obvious hexadecimal prefix), for example 0x00A85d2d62E1851ad5702e31619B10c7E4308522. What is the reason…
J-B
- 8,941
- 16
- 46
- 77
13
votes
2 answers
How to get tokens out of a metamask account
I transferred tokens (GNT) from an exchange to a metamask account but I can't figure out how to get them out. They do not show up in metamask, but etherscan shows them. I tried to import the account to mist but I do not have a json file to import…
user7659
- 131
- 1
- 1
- 3
13
votes
3 answers
How can I completely automate a Docker image and Dockerfile for a geth test network
I would like to create a Docker image for a test network that has everything ready to go - pre-created accounts with ether already allocated.
The problem is there doesn't seem to be a way to do this the Docker Way(tm). In order to create ether out…
Paul S
- 4,271
- 1
- 22
- 48
13
votes
2 answers
How to start with ERC-4337?
I cannot find a guide about using ERC-4337 along with a Solidity contract.
It is an interface like ERC-20, ERC-721 or ERC-1155?
Could I use ERC-4337 just importing the interface (from OpenZeppelin, for example), like IERC-20, IERC-721 or…
Alexander Herranz
- 1,858
- 2
- 17
- 35
13
votes
3 answers
Company Shares on Ethereum
Shares are designed to provide owners with:
ownership
profits/losses
How would Ethereum based ownership make sure each owner, gets their share profits?
Is this even possible with Ethereum / smart contracts?
Boomerius
- 171
- 1
- 6