You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
forge fmt does not seem to format contract instantiation statements such as:
// SPDX-License-Identifier: MITpragma solidity0.8.17;
contractB {
constructor(uint256a, uint256b, uint256c) {}
}
contractA {
function f() public {
new B (1, 3,
4);
}
}
Running forge fmt with the above in the repo will not correct the new B statement to the expected new B(1, 3, 4);\n but instead leaves it as is. Other statements in the same file are still formatted as expected.
The text was updated successfully, but these errors were encountered:
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
No response
What command(s) is the bug in?
forge 0.2.0 (394f217 2023-03-21T00:03:24.86Z)
Operating System
Linux
Describe the bug
forge fmt
does not seem to format contract instantiation statements such as:Running
forge fmt
with the above in the repo will not correct thenew B
statement to the expectednew B(1, 3, 4);\n
but instead leaves it as is. Other statements in the same file are still formatted as expected.The text was updated successfully, but these errors were encountered: