solang
solang copied to clipboard
Add support for `transient` keyword
Request
0.8.28 introduced the transient keyword in Solidity: https://soliditylang.org/blog/2024/10/09/solidity-0.8.28-release-announcement/
Context
Foundry uses Solang's parser for its formatter, see https://github.com/foundry-rs/foundry/issues/9088
ping @ryjones / @seanyoung, would be great to get support for this
@zerosnacks I do backend stuff, not code, but I've added the right people
@zerosnacks I do backend stuff, not code, but I've added the right people
Thanks! I appreciate it
I just need to find some time to add this feature to the parser - should be straightforward.
So I had a look at this - it's not so simple. The way this is added to solc is that there is no new keyword. For example:
contract C {
uint transient transient;
}
is allowed. We need to figure out how to add this without adding a new keyword.
Hey hey, any update on this?
Hi @seanyoung, any updates on this? Would be great to get this resolved
Hi all, any updates on this?
It is currently causing issues for our users preventing them from using transient because forge fmt currently uses Solang.
Hi @LucasSte / @seanyoung / @xermicus, any updates or blockers on your side?