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 264

Questions regarding the development of smart contracts

3 votes
Accepted

Can you override the send method?

You can't override build in types in solidity. They are not contracts and you can override only contracts. An address is an EVM type and send is a wrapper around the CALL Opcode. http://solidity.read …
Roland Kofler's user avatar
3 votes

How to import a contract in another one without using import but using the address in differ...

When you instantiate a contract with its address as parameter, then you have access to this very contract: contract C1 { function call (address myContractsAddress, uint aParameter) returns(uint){ …
Roland Kofler's user avatar
4 votes
3 answers
939 views

Can a contract know sender's address creation date?

My contract should have a function that reads the creation date of the sender address. Possible?
Roland Kofler's user avatar
2 votes
Accepted

Can you write a contract which bytecode can be proven that can only send ether to a given ad...

It is rather easy I think, even with solidity contract Example{ address recipient = 0x0000cafebabe; function send(){ recipient.send(this.balance); } } results in (optimized bytecode): 60606 …
Roland Kofler's user avatar
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 …
Roland Kofler's user avatar
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
Roland Kofler's user avatar
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 …
Roland Kofler's user avatar
38 votes
1 answer
29k views

Ways to see if address is empty

Is owner > 0x0 a good way to test if an address owner was set in Solidity? I am not sure if this could break something in the future and if there are better ways to see if the address was set. What is …
Roland Kofler's user avatar
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; } …
Roland Kofler's user avatar
2 votes

Why does adding "public" to a mapping break my contract?

I've executed your contract with public on browser-solidity and had no errors. You should check if your tools are up to date...
Roland Kofler's user avatar
1 vote

Solidity Smart contracts vs Human contracts

How would I verify that condition [...]? Oracles for external data, calling Contracts for internal stuff would that be asynchronous in any way? Not sure, asking here In the case of a ti …
Roland Kofler's user avatar
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 …
Roland Kofler's user avatar
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 …
Roland Kofler's user avatar
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]
Roland Kofler's user avatar
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 …
Roland Kofler's user avatar

15 30 50 per page