solidity-language-server 0.1.34

A fast Solidity language server powered by solc and Foundry
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.26;

// Warning 2072: unused local variable.
// Fix: delete the entire `uint256 fee = 100;` statement.

contract UnusedVar {
    function deposit(uint256 amount) public pure returns (uint256) {
        uint256 fee = 100;
        return amount;
    }
}