Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 23698

Solidity is a contract-oriented, high-level language whose syntax is similar to that of JavaScript and it is designed for writing smart contracts in Ethereum to run on the EVM. Solidity is statically typed, supports inheritance, libraries and complex user-defined types among other features.

8 votes
2 answers
10k views

What does "_" mean before a variable name?

I'm a beginner, just recently started reading the docs for Solidity. I can't seem to find this anywhere on google. What does the underscore mean when placed with the indexed keyword? …
Expectator's user avatar
2 votes
1 answer
150 views

Fair, barely malleable CSPRNG that can still be deterministic?

That means Solidity has no built in RNG that is deterministic. I don't want to have the contract sender msg.sender to have to generate a random number for the contract to SHA-3. …
Expectator's user avatar
0 votes

How to use truffle-assertions to check if a constructor will revert?

For this example contract, I used: contract("Reverts", (accounts) => { it("Check that param1=false, constructor reverts.", async () =>{ try{ await Reverts.new(false); } …
Expectator's user avatar
0 votes
2 answers
190 views

How to use truffle-assertions to check if a constructor will revert?

Say I have a contract: contract Reverts{ constructor(param1){ require(param1); } } If param1 is false, the constructor should fail and revert state. truffle-assertions allows me to ch …
Expectator's user avatar