nishant 6 months ago

How to quickly test a Solidity function?

There are snippets and functions of Solidity code around the web. What are ways to quickly test them, possibly debug a little, and play around? more

Karma symbol 115
Total Karma earned answering this question
Up gray arrow normal 3
Total Votes for this question
Speach bubble 9
Total Comments to this question

luke 6 months ago

Wouldn't now have a different value on each validating node?

How are random numbers possible? Wouldn't `now` (aka `block.timestamp`) have a different value on each validating node? more

Karma symbol 20
Total Karma earned answering this question
Up gray arrow normal 0
Total Votes for this question
Speach bubble 1
Total Comments to this question

avgustis_genius 6 months ago

Basic ICO contract

I want to make an ico, raise a ton of money, and start living a good life. How to write a basic ICO contract with 100 bln tokens and sell them 1 do... more

Karma symbol -20
Total Karma earned answering this question
Up gray arrow normal -16
Total Votes for this question
Speach bubble 8
Total Comments to this question

mzlittlepony 6 months ago

How to securely generate random number in Solidity?

I am writing a contract atm which needs some randomization. I have heard generating random number (either from block timestamp, or tx hash) is not ... more

Karma symbol 40
Total Karma earned answering this question
Up gray arrow normal 8
Total Votes for this question
Speach bubble 3
Total Comments to this question

james.dean 6 months ago

Sensitive info security on blockchain

How do you hide and reveal sensitive information on ethereum?

Karma symbol 5
Total Karma earned answering this question
Up gray arrow normal 1
Total Votes for this question
Speach bubble 1
Total Comments to this question

lupina9kamilla 6 months ago

Gas required exceeds limit

When I run the function I get: ""Gas required exceeds limit: 3000000. [...]"". Can someone help me? ```javascript function checkValue() public pay... more

Karma symbol 25
Total Karma earned answering this question
Up gray arrow normal 1
Total Votes for this question
Speach bubble 2
Total Comments to this question

luke2 5 months ago

What does keccak256 do? Why do I see it used everywhere?

I was browsing [Ethfiddle's recent fiddles page](https://ethfiddle.com/recent_fiddles) and saw many contracts use `keccak256` everywhere. Can someo... more

Karma symbol 70
Total Karma earned answering this question
Up gray arrow normal 2
Total Votes for this question
Speach bubble 3
Total Comments to this question

falloutboy 5 months ago

Which OPCODES are there for use in EVM?

When I compile Solidity code, ABI looks pretty much like instructions with opcodes. Is there a full list of those available for EVM? more

Karma symbol 40
Total Karma earned answering this question
Up gray arrow normal 0
Total Votes for this question
Speach bubble 3
Total Comments to this question

robertoschler 5 months ago

Do default values in Solidity work the same as they do in other programming languages?

A question regarding Solidity and what looks like "default values" for function call parameters. For example: function someFunc(address theAddres... more

Karma symbol 75
Total Karma earned answering this question
Up gray arrow normal 1
Total Votes for this question
Speach bubble 2
Total Comments to this question

cool2 5 months ago

How to solidity contracts interact among each other?

How to solidity contracts interact among each other? - What's the correct way to call another solidity contract from current one. more

Karma symbol 130
Total Karma earned answering this question
Up gray arrow normal 6
Total Votes for this question
Speach bubble 3
Total Comments to this question