NomicFoundation / hardhat-vscode

Solidity and Hardhat support for Visual Studio Code

Home Page:https://hardhat.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Escape character with \ in string not works

Xeonacid opened this issue · comments

Minimal Reproducible Example:

contract Test {
    function f(string memory s) pure returns (string memory) {
        return string.concat("\"", string.concat(s, "\""));
    }
}

image

I have been able to reproduce this locally. This is a bug.

It might be getting disguised by prettier cleaning up "\"" to '"' on format.