This file contains 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.23; | |
contract SafeExecution { | |
address public owner; | |
modifier noOwner() { | |
require(owner == 0, 'level already completed'); | |
_; | |
} |
This file contains 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.23; | |
contract FunctionTypes { | |
constructor() public payable { require(msg.value != 0); } | |
function withdraw() private { | |
require(msg.value == 0, 'dont send funds!'); | |
address(msg.sender).transfer(address(this).balance); | |
} |
This file contains 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.23; | |
contract AddSub { | |
function add(uint a, uint b) internal pure returns (uint) { | |
return a + b; | |
} | |
function sub(uint a, uint b) internal pure returns (uint) { | |
return a - b; |
This file contains 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.21; | |
contract A { | |
address[] public addrs; | |
function A () public { | |
while (addrs.length < 10) | |
addrs.push(msg.sender); | |
} |
This file contains 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
0x2be1039Fa61797e723fA08C36E680ec5b6836b9E |
This file contains 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
{ | |
"config": { | |
"target": "http://localhost", | |
"phases": [ | |
{"duration": 10, "arrivalRate": 20} | |
] | |
}, | |
"scenarios": [ | |
{ | |
"flow": [ |
NewerOlder