//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.4.18; library SomeLib { event calledSomeLib(address _from); function calledSomeLibFun() public{ calledSomeLib(this); } } contract SomeContract{ event callMeMaybeEvent(address _from); function callMeMaybe() payable public { callMeMaybeEvent(this); } } contract ThatCallsSomeContract{ function callTheOtherContract(address _contractAddress) public{ require(_contractAddress.call(bytes4(keccak256("callMeMaybe()")))); require(_contractAddress.delegatecall(bytes4(keccak256("callMeMaybe()")))); SomeLib.calledSomeLibFun(); } }
0.4.18