an open end to change owner via spell()

This commit is contained in:
Sowmay Jain 2020-08-27 16:57:57 +10:00
parent 85bd5774b8
commit 51f2867cf1

View File

@ -116,7 +116,6 @@ contract Flusher {
require(_target != address(0), "target-invalid");
require(_data.length > 0, "data-invalid");
bytes memory _callData = _data;
address _owner = owner;
assembly {
let succeeded := delegatecall(gas(), _target, add(_callData, 0x20), mload(_callData), 0, 0)
switch iszero(succeeded)
@ -127,7 +126,6 @@ contract Flusher {
revert(0x00, size)
}
}
require(_owner == owner, "owner-change-denied");
}
receive() external payable {}