//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.4.18; contract WillThrow { function () public payable { revert(); } } contract Transfer { WillThrow public target; function Transfer(address contractAddress) public { target = WillThrow(contractAddress); } function forward() external payable { target.transfer(msg.value); } }
0.4.18