Jossie Calderon
  • Member for 4 years, 6 months
  • Last seen more than a month ago
1 answers
5 votes
4k views
What does the keyword `var` do in solidity?
Accepted answer
9 votes

From the docs: Type Deduction For convenience, it is not always necessary to explicitly specify the type of a variable, the compiler automatically infers it from the type of the first ...

View answer
2 answers
13 votes
12k views
Should I always put 0x at the start of Ethereum addresses?
9 votes

I feel like @eth did not answer the question. The 0x is necessary, because it lets the receiver know it's an address in hexadecimal format.

View answer
6 answers
14 votes
13k views
How to convert string to int
5 votes

Some of BokkyPooBah's code is incorrect. Here are the functions to convert uInt to string, and vice versa, along with my comments: function stringToUint(string s) constant returns (uint) { bytes ...

View answer
1 answers
3 votes
3k views
How to copy/assign an array via for loop
Accepted answer
3 votes

According to the docs, Index access: If x is of type bytesI, then x[k] for 0 <= k < I returns the k th byte (read-only). Basically, your function copy() is experiencing an off-by-one error. ...

View answer
6 answers
27 votes
16k views
How to compile Solidity contracts with Geth v1.6?
3 votes

Maybe you'll consider downloading the truffle framework instead. With the truffle framework, I'm able to compile but also store my files easily (it does it for me). Once you have downloaded truffle ...

View answer
2 answers
5 votes
496 views
Can I execute a contract function by sending a regular transaction to the contract?
2 votes

Improving on Thomas Jay Rush's code (it's now missing the payable modifier as of 09/2016): mapping (address => uint) data function () payable { data[msg.sender] = msg.value; }

View answer
2 answers
4 votes
792 views
What does this screen shot mean?
2 votes

It means you can either use the test network or main network to develop contracts.

View answer
3 answers
1 votes
178 views
Who controls the value of Ether or any digital currency defined in Ethereum in private network?
1 votes

Banks can invest a certain amount of money (like dollars) into it, and then its value changes because of several factors. The fiat used to invest could have dropped in value, so the cryptocurrency ...

View answer
1 answers
2 votes
420 views
Stolen ETH on Ethereum-Wallet DOT info
1 votes

Do your due diligence. Don't be phished by looking carefully at the web address. Use Coinbase as an exchange and Mist for a desktop wallet. (Seriously, how hard can this be? Not at all!) In case the ...

View answer
2 answers
1 votes
789 views
Output in truffle
0 votes

If your contract is mentioned in the migrations file, then use the following: $ truffle console truffle(development)> compile truffle(development)> myContract = contract.deployed() truffle(...

View answer
2 answers
5 votes
3k views
how to get code for already deployed contract in ethereum network
0 votes

Peer A should have posted it at GitHub.com/(TheRelevantRepositorySubdirectoryHere). Otherwise, it is available on the block in question as bytecode. The EVM executes this bytecode when the contract ...

View answer
1 answers
0 votes
274 views
Mist Wallet unable to sync due to connection error
0 votes

Re-starting the client eliminated the error.

View answer