Last active
November 8, 2018 08:30
-
-
Save jtakalai/659ed2c7b14ef4d35c48484c61289682 to your computer and use it in GitHub Desktop.
What does this contract do? Can you spot a bug?
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.0; | |
contract Puzzle { | |
address _a; | |
address _b; | |
constructor(address a, address b) public { | |
_a = a; | |
_b = b; | |
} | |
function () public payable { | |
_a.transfer(msg.value / 2); | |
_b.transfer(msg.value / 2); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment