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 41014

for high-level questions about the choices made during contract construction

2 votes

give a certain date to a document

Or an alternative using events which gives us a historical log. We can combine it with Lauri Peltonen's example to make it so a document can only be set once. contract Timestamping { event logTime …
Nico Vergauwen's user avatar
1 vote
Accepted

How to get the address of a contract deployed by another contract?

Your function is not a view function because it modifies and thus will be a transaction so it will not return a value , simply the tx receipt. The value can be returned to another function however, j …
Nico Vergauwen's user avatar
1 vote
Accepted

Any coding games made for learning how to build out ethereum smart contracts?

Cryptozombies is cool indeed, also check out https://ethernaut.zeppelin.solutions/
Nico Vergauwen's user avatar
-1 votes

Why do we distinguish between view and pure?

I find the answer above confusing. It really boils down to this: Pure does (can) not access state only memory/stack View can access state but not make changes to it, just query (+ ETL). No state c …
Nico Vergauwen's user avatar
10 votes
Accepted

Why to write return statements in solidity function

In Solidity you can return values from functions to the user if these functions are declared view(/constant). When they are not declared as view you can still get a return value by using .call() this …
Nico Vergauwen's user avatar
1 vote
Accepted

Basics and Workflow on Smart Contracts creation and execution

Send tx to create a new account, a contract account this is stored in the world state (which is a mapping of the accounts and account state) . This creates a contract storage, our smart contract's by …
Nico Vergauwen's user avatar
0 votes

Smart Contract - Update implementation using a Relay with delegateCall

Here's an example for upgradeable libraries. https://github.com/kyriediculous/knuckles/tree/master/contracts/contracts I'm currently working on cutting it down. There's a central registry to keep …
Nico Vergauwen's user avatar
2 votes
Accepted

Modify Struct on Upgradeable Smart Contracts

tl;dr the upgradeable part is the library which only contains logic, not storage. Only editing You can't do that since the interface in which you define your struct is linked to the storage contract …
Nico Vergauwen's user avatar
4 votes
Accepted

Where are finally ethereum event logs stored?

You can trust the logs because they are stored in their respective block. If a log gets changed it would change the blockhash, receiptRoot, etc , same as with transactions. The merkle tree would not b …
Nico Vergauwen's user avatar