This marks a minor release of medusa. Version 0.1.2 brings updates to the EVM, support for console.log cheat codes, AST literal extraction, logging, and error handling.
What's Changed
- Added support for
console.logcheat codes, enabling users to log on-chain information into medusa execution traces shown when a test failure occurs. - Updated the underlying
medusa-gethfork to targetgo-ethereum1.12.0, enabling the Shanghai fork and use of Solidity 0.8.20, which leverages the newerPUSH0opcode. - Improved AST literal extraction and added denomination parsing. Constants such as
1e9,1 ether, or3 hoursare now properly extracted, enabling better value generation. - Updated the logger to improve upon error logging. Errors are now presented in a more intuitive manner to end users.
- Fixed a nil dereference when calling
SetTarget, which would cause a crash if an invalid platform was set in the project config file and--targetwas provided.
Full Changelog: v0.1.1...v0.1.2