CRYPTO NEWS

Does anyone know what is the purpose of "this;" at the end of the function

    // SPDX-License-Identifier: MIT pragma solidity ^0.6.0;  contract Delegate {    address public owner;    constructor(address _owner) public {     owner = _owner;   }    function pwn() public {     owner = msg.sender;   } }  contract Delegation {    address public owner;   Delegate delegate;    constructor(address _delegateAddress) public {     delegate = Delegate(_delegateAddress);     owner = msg.sender;   }    fallback() external {     (bool result,) = address(delegate).delegatecall(msg.data);     if (result) {       this;     }   } } 

This code is from Ethernaut Delegation challenge.

Does anyone know what is the purpose of "this;" at the end of the function

Shopping cart
There are no products in the cart!
Continue shopping
0