Skip to content

Instantly share code, notes, and snippets.

@PhyrexTsai
Created July 17, 2017 01:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PhyrexTsai/a492bb525d82af17f0a62636ae8d2c6c to your computer and use it in GitHub Desktop.
Save PhyrexTsai/a492bb525d82af17f0a62636ae8d2c6c to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.11;
contract Caller {
event Log(address _address, uint256 _value, bytes _data);
function invoke(address _address, uint256 _value, bytes _data) {
if (_address.call.value(_value)(_data)) {
Log(_address, _value, _data);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment