clear code delegatecall

This commit is contained in:
Ricardo Guilherme Schmidt 2019-02-27 07:48:10 -03:00
parent 4b5952c842
commit fa810e7942
No known key found for this signature in database
GPG Key ID: BFB3F5C8ED618A94
1 changed files with 1 additions and 4 deletions

View File

@ -21,10 +21,7 @@ contract DelegatedCall {
if(_target == address(0)) {
_; //normal execution
} else {
//delegated execution
bytes memory returnData;
bool success;
(success, returnData) = _target.delegatecall(msg.data);
(bool success, bytes memory returnData) = _target.delegatecall(msg.data);
require(success, "Delegated Call failed");
//exit-return delegatecall returnData