Skip to content

Instantly share code, notes, and snippets.

View 1SHA1024's full-sized avatar
🎯
Focusing

Red Pill 1SHA1024

🎯
Focusing
  • Future
View GitHub Profile
@vasa-develop
vasa-develop / EtherStore.sol
Created July 21, 2018 18:18
DO NOT USE THIS CODE. THIS CODE IS USED TO DEMONSTRATE A VULNERABILITY IN A SOLIDITY CODE.
contract EtherStore {
uint256 public withdrawalLimit = 1 ether;
mapping(address => uint256) public lastWithdrawTime;
mapping(address => uint256) public balances;
function depositFunds() public payable {
balances[msg.sender] += msg.value;
}
function withdrawFunds (uint256 _weiToWithdraw) public {