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 8763

Questions about Remix, an online browser compiler for Solidity, formerly called Browser Solidity.

0 votes
3 answers
108 views

Question about dynamic arrays

int256[] public test; function setTest(int256 b) public{ test.push(b); } function setTest2(uint256 a, int256 b) public { test[a] = b; } } I executed the code in remix … I call the function setTest2(0, 1) and call the getter afterwards, remix shows me that the value at position 0 is 0 and not 1. …
Donut's user avatar
  • 547
1 vote
1 answer
88 views

Forwarding Ether from one contract to another

That's the error message I get in remix. transact to Attacker.buy errored: VM error: revert. revert The transaction has been reverted to the initial state. …
Donut's user avatar
  • 547
1 vote
Accepted

Forwarding Ether from one contract to another

I tell you what is wrong: the dev in front of the screen (facepalm) The parameter in the constructor of the attacker contract uses tokenContract as name. This shadows the state variable, which leads t …
Donut's user avatar
  • 547