3it's picture
Upload 491 files
dec6d5d verified
raw
history blame contribute delete
472 Bytes
pragma solidity ^0.4.15;
contract Dispatcher {
address target;
function Dispatcher(address _target) public {
target = _target;
}
function() public {
assembly {
let _target := sload(0)
calldatacopy(0x0, 0x0, calldatasize)
let retval := delegatecall(gas, _target, 0x0, calldatasize, 0x0, 0)
let returnsize := returndatasize
returndatacopy(0x0, 0x0, returnsize)
}
}
}