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
When the new transient keyword is used, forge fmt fails. For instance if transient is added to the number state variable of the initial Counter contract:
Error:
Failed to parse Solidity code for src/Counter.sol. Leaving source unchanged.
Context:
- failed to parse file:
Error: ParserError
╭─[:5:30]
│
5 │ uint256 public transient number;
│ ───┬──
│ ╰──── unrecognised token 'number', 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?
forge 0.2.0 (f79c53c 2024-10-10T00:25:05.432733000Z)
What command(s) is the bug in?
forge fmt
Operating System
macOS (Apple Silicon)
Describe the bug
When the new
transient
keyword is used,forge fmt
fails. For instance iftransient
is added to thenumber
state variable of the initialCounter
contract:The text was updated successfully, but these errors were encountered: