a REPL to provide instant feedback for Solidity snippets
Any bug reports or feature requests are appreciated.
.session
print formatted Solidity source.editor
editor modenpm i -g sol-repl
$ sol
Welcome to Solidity v0.8.13!
Type ".help" for more information.
> .help
.exit Exit the REPL
.help Print this message
.session Print current session
> enum Abc { a, b, c }
> type(Abc).max
2
> Abc c = Abc.c
2
> contract C {}
> msg.sender
0x4B6F0b9546487B1a184ADc43e0b17299cCdf8648
cursor
delete
interrupt