This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="mui-container" style="float: left;"> | |
<p id="status" style="float: right; margin-top:20px"></p> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section class="mui-container-fluid"> | |
<div class="mui-row"> | |
<div class="mui-col-md-6"> | |
<div class="mui-select"> | |
<select id="versions"></select> | |
</div> | |
</div> | |
</div> | |
</section> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="mui-container-fluid"> | |
<div class="mui-row"> | |
<div class="mui-col-md-6"> | |
<div class="mui-panel"> | |
<p style="font-size:25px; font-weight:bold"> | |
Compile Contract | |
</p> | |
<textarea id="source" onclick="this.select()" style="height:360px; width: 600px; display:block; margin-left:20px"></textarea> | |
<button class="mui-btn mui-btn--primary"> | |
Compile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.18; | |
contract HelloWorld { | |
function displayMessage() constant returns (string) { | |
return "Whale hello there!"; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.8; | |
contract Victim { | |
bool locked; | |
/** | |
@dev Modifier to insure that functions cannot be reentered | |
during execution. Note there is only one global "locked" var, so | |
there is a potential to be locked out of all functions that use | |
the modifier at the same time. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Victim = artifacts.require('./Victim.sol') | |
const Attacker = artifacts.require('./Attacker.sol') | |
module.exports = function(deployer) { | |
deployer | |
.deploy(Victim) | |
.then(() => | |
deployer.deploy(Attacker, Victim.address) | |
) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.8; | |
import './Victim.sol'; | |
contract Attacker { | |
Victim v; | |
uint public count; | |
event LogFallback(uint c, uint balance); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.8; | |
contract Victim { | |
function withdraw() { | |
uint transferAmt = 1 ether; | |
if (!msg.sender.call.value(transferAmt)()) throw; | |
} | |
function deposit() payable {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x1418191f236A1ADdAC71848f09461593415084d9 |