CRYPTO NEWS

What is the point of just calling ‘this’? [duplicate]

In the OpenZeppelin The Ethernaut challenge level 6 "Delegation" I’ve seen the following snipped of Solidity code:

  fallback() external {     (bool result,) = address(delegate).delegatecall(msg.data);     if (result) {       this;     }   } 

While the challenge was not too difficult to solve, I do not fully understand this code. My guess is that the if (result) { this; } part is just to silence the compiler warning that would be shown if the bool result was never accessed (in consequence of getting the result of the delegatecall at all because of the "return value of low-level calls not used" warning that would be shown by the compiler otherwise).

Or is there any other reason for this code? What exactly does calling this; do?

how do i add a specific and constant tickerid into pinescript to use as a secondary entry condition?

I have an existing v4 pinescript script that creates a buy alert for use in the crypto market. the script refers to the chart tickerid. i want to add an additional condition whereby the script looks at the RSI of another tickerid (a common market cap ticker such as tradingview – "TOTAL"). i need assistance::Listen

I have an existing v4 pinescript script that creates a buy alert for use in the crypto market. the script refers to the chart tickerid. i want to add an additional condition whereby the script looks at the RSI of another tickerid (a common market cap ticker such as tradingview – "TOTAL").

i need assistance in adding the secondary ticker into the script. thanks all.

What is the point of just calling ‘this’? [duplicate]

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