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

Questions regarding the development of smart contracts

0 votes

Is this token code only or crowdsale code as well

this is token code ERC20 is the common interface MONT is the implementation of that interface SafeMath is a library for safe mathematic operations (avoiding under/overflow) Owned is a contract to …
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
5 votes
Accepted

Any Pseudo Random Number Generator that can generate different numbers in the same block?

You can use an incrementing nonce each time a number is generated. This would have a large effect on the hash output. Random 0-100 Example: contract Random { uint nonce; function random() …
Nico Vergauwen's user avatar
0 votes

Security analysis tool for Ethereum smart contracts

Mythril is by far the best tool available, takes some getting used to though. Great introduction and overview: #HITB2018AMS D1T2 - Smashing Ethereum Smart Contracts for Fun and ACTUAL Profit - Bernh …
Nico Vergauwen's user avatar
5 votes
1 answer
921 views

Get return data from delegatecall

I'm using a low level delegatecall to forward my calls to a library. I need to (in this order) : load bytes4 sig into _message from memory load bounty (STRUCT) into _message from storage load byte …
Nico Vergauwen's user avatar
1 vote

Trouble with libraries (Remix)

You have no uint defined in your storage to use the library on, also your library functions can be pure. below using IntExtended for uint add uint myUint and then you can call the library functi …
Nico Vergauwen's user avatar
0 votes

Is it possible to do an escrow for ERC20 Token

You need to know the address of the token, allow the user to store this. You need to instantiate the token contract at that address so you can call it's functions You need to use approve() on the cli …
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
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