Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- contract DelegateCaller {
- uint public n;
- address public sender;
- function delegatecallSetN(address _e, uint _n) {
- _e.delegatecall(bytes4(keccak256("setN(uint256)")), _n); // D's storage is set, E is not modified
- }
- }
- contract OuterContract {
- uint public n;
- address public sender;
- function setN(uint _n) {
- n = _n;
- sender = msg.sender;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement