- Add macros for
console.log
functionalities for Huff contracts.- See
test/console.t.huff
for usage examples.
- See
- Breaking: Rename
HuffDeployer
toHuffDeployerNeo
andHuffConfig
toHuffNeoConfig
- Reasoning for this change:
- Make it clear that this is the Huff Neo Compiler version and has a different API
- Reasoning for this change:
- Breaking: Remove
with_code
option fromHuffDeployer
- Generating on the fly code has multiple issues:
- Can cause include paths to be incorrect
- Hides the actual code being compiled in the contract
- Can result in incorrect source without the user knowing
- Hides errors that would be caught by the eye of the user with syntax highlighting
- Generating on the fly code has multiple issues:
- Breaking: Path for
deploy(filepath)
is passed to the compiler without addition. Before the file path was prefixed withsrc
and appended the.huff
suffix.- Reasoning for this change:
- For the user, is more obvious that the path is a file path
- Allows to keep the file e.g. in
test
without "hacky" workarounds
- Reasoning for this change:
- Remove stringutils dependency (no longer needed because code is not generated on the fly)
- Update Foundry to the latest version
- Check stderr for errors after compilation
- Deploy fails if:
- The compiler returns an error and reports the reason in
HuffNeoCompilerError
- The compiler only returns creation bytecode
- The compiler returns an error and reports the reason in