Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 1.5 KB

CHANGELOG.md

File metadata and controls

30 lines (26 loc) · 1.5 KB

Foundry Huff Neo changelog

[Unreleased]

[1.0.1] - 2025-01-29

  • Add macros for console.log functionalities for Huff contracts.
    • See test/console.t.huff for usage examples.

[1.0.0] - 2025-01-12

  • Breaking: Rename HuffDeployer to HuffDeployerNeo and HuffConfig to HuffNeoConfig
    • Reasoning for this change:
      • Make it clear that this is the Huff Neo Compiler version and has a different API
  • Breaking: Remove with_code option from HuffDeployer
    • 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
  • Breaking: Path for deploy(filepath) is passed to the compiler without addition. Before the file path was prefixed with src and appended the .huffsuffix.
    • 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
  • 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