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 83

questions for finding and squashing bugs in smart contracts and decentralized development

2 votes
1 answer
63 views

Why is "+=" operator used in this auction example?

Here's an auction code from blog.ethereum.org contract auction { address highestBidder; uint highestBid; mapping(address => uint) refunds; function bid() { if (msg.value < highestBid) thr …
manidos's user avatar
  • 4,308
1 vote
2 answers
769 views

Calling a contract from a called contract

I'm trying to make nested calls or whatever they are called. I always get out of gas exception. What am I missing? From JS side I do caller.makeCall(firstAddress, secondAddress, {gas:300000, value: 3 …
manidos's user avatar
  • 4,308
0 votes
Accepted

Calling a contract from a called contract

Whew, I've found a bug. So, the problem was that first.call.gas(100000) forwards to contract first exactly this amount. When EVM control reaches second.call.gas(100000) it forwards this amount to con …
manidos's user avatar
  • 4,308
3 votes
Accepted

Reproducing stack depth attack

Whew, I've figured it out. I couldn't make stack depth attack work with call though. I used delegatecall instead. Here's an example that shows how it works. contract Attacker { Victim public vict …
manidos's user avatar
  • 4,308
4 votes
2 answers
484 views

Reproducing stack depth attack

Victim contract allows one time withdraw only. I want to attack it using stack depth attack to withdraw everything it has. I've tried different things, but can't get the desired result. Here's where I …
manidos's user avatar
  • 4,308
3 votes
1 answer
1k views

Callcode | Delegatecall don't work

I was playing around with call, delegatecall and callcode and discovered that the function reset stopped working after I had made a callcode call (here are my actions): FROM JS SIDE: — A.makeCall({g …
manidos's user avatar
  • 4,308
2 votes
Accepted

Callcode | Delegatecall don't work

The problem has to do with how variables arranged in the storage. The storage of the called and the calling contract should match. The answer to this question can be found here https://github.com/eth …
manidos's user avatar
  • 4,308
24 votes
1 answer
8k views

What are *C*, *E* and *S* properties in message call return object?

(JS) var contract = web3.eth.contract(abiDefinition).at(address); contract.test(value, gotResult); function gotResult(error, result) { if(!error) { console.log( …
manidos's user avatar
  • 4,308