Search Results
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 |
Questions regarding the development of smart contracts
5
votes
What is formal verification, and why is it important for smart contracts?
Formal verification means applying a proof that the program behaves according to a specification. In general, this is done with a concrete specification language used to describe how input and output …
-1
votes
What are the runtime scopes in contract interopability?
if in a call stack of message calls a throw happens, then the state of all called messages after the throw-ing message call remains intact, while all of the calls under the call stacks are reverted.
…
3
votes
2
answers
619
views
What are the runtime scopes in contract interopability?
It seems that there is a scope per contract. This subtlety is debated on Reddit:
https://www.reddit.com/r/ethereum/comments/5hiy29/solidity_throw_after_selfdestruct_why_does_the/
I can reproduce th …
5
votes
1
answer
2k
views
Can I deploy a contract to an arbitrary address that I choose?
If I want to create a smart contract by executing a raw tx, is it mandatory to compute the new contracts address the way it's been defined, or could I pick my own address arbitrarly? Why?
4
votes
Is there any limitation for the number of the return values from Solidity functions?
According to the Solidity grammar the amount of return values are infinite:
FunctionDefinition = 'function' Identifier? ParameterList
( FunctionCall | Identifier | 'constant' | ' …
2
votes
Accepted
Setting up a truffle project
The output is not in the build directory but in the ./environments/ directories.
Truffle knows 4 environments by default
development
staging
production
test
Each environment is configurable to us …
1
vote
0
answers
103
views
Why is creating a uint8 more expensive than a uint256? [duplicate]
Assume a contract:
contract A {
function b() constant returns (uint8 result) {
result =1;
}
}
When I replace uint8 result with uint256 result then the creation of the contract get …
1
vote
Accepted
Need help. 7777
There is jobs.ethercasts.com
Or use a freelancer portal like upwork.com
Or you can contact me via a temporary email to discuss your project: [email protected]
3
votes
Accepted
Unable to understand PoW Algorithm?
The main purpose of any Proof of ... system is to pick a random node to confirm that nobody cheated in the last block(s). And it does so in a decentralized way, i.e. no central random generator.
L …
20
votes
Accepted
Working with structure arrays in solidity
Push is available only on storage arrays, that is member/ state variables and not in memory arrays, that is local variables:
push: Dynamic storage arrays and bytes (not string) have a member
fun …
3
votes
Accepted
Deleting nested structures in solidity
Yes everything gets cleared
Given this contract:
contract C {
struct Point {
uint256 x;
uint256 y;
}
struct Image {
Point[] points;
string name;
}
…
5
votes
Accepted
Binary search in Solidity arrays
No, all the collection data types are very basic. This may be considered a design decision to keep the execution very cheap and will therefore not change in the future.
To my knowledge, no library for …
5
votes
Solidity default contract attribute/method scopes
Functions: the default is public
State variables: the default is internal
You can find more here:
http://solidity.readthedocs.io/en/latest/contracts.html
7
votes
Accepted
Reading values from a contract: When do I need transactions?
In which functions do I need a transaction?
Only in that that changes values. The other you can call from a single ethereum node. This does not require spending any any ETH.
From the web3 documentat …
3
votes
Accessing calling contract storage in a library
If you think about it, the library can not know the variable names of the calling contract. The compiler must fail. What you can do is pass the variable through the interface. In the background, no tr …