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 540

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.

1 vote
0 answers
2k views

How can I check if a variable or an array is set or empty or null? [duplicate]

How can I check if a variable or an array is already set, empty or null in solidity? For example, mapping (string => address) addresses; How can we know addresses[key] is set or not? …
Satoshi Nakanishi's user avatar
33 votes
3 answers
24k views

What is the 'this' keyword in Solidity?

What is the specification of the 'this' keyword in Solidity? How does it work? … Sample code from Solidity Features · ethereum/wiki Wiki contract Helper { function getBalance() returns (uint bal) { return this.balance; // balance is "inherited" from the address type } } …
Satoshi Nakanishi's user avatar
12 votes
2 answers
4k views

How many arguments can Solidity take?

I'd like to set lots of arguments in solidity functions. I wonder how many arguments contracts can handle. Does it depend on number of arguments or data size? …
Satoshi Nakanishi's user avatar
15 votes
1 answer
11k views

How should we set a import path in solidity?

I failed to compile a solidity file with import statement. Error: Source not found: File not found. import './contract.sol'; How should we set a import path? … web3.eth.compile.solidity(data); Layout of a Solidity Source File — Solidity 0.2.0 documentation http://solidity.readthedocs.org/en/latest/layout-of-source-files.html …
Satoshi Nakanishi's user avatar
30 votes
2 answers
5k views

What is the merit of creating new smart contract languages like Solidity instead of using ot...

What is the pros and cons of creating new languages like Solidity for smart contracts instead of using other computer languages like Golang or Python? …
Satoshi Nakanishi's user avatar