Skip to content

Releases: OpenZeppelin/stylus-test-helpers

v0.4.0

11 Feb 16:57
862770f
Compare
Choose a tag to compare

Summary

Added

  • Mocks for the msg::sender(). #14
  • Mocks for the msg::value() and contract::balance(). #31
  • Mocks for the external contract calls. Two and more contracts can be injected into a single test. #14
  • Option to inject Account or Address in the test. #14

Changed(Breaking)

  • Contract<..> wrapper is mandatory for the contract's argument. #14
  • To call contract's function it is mandatory to explicitly indicate the sender, through Contract::<..>::sender(..) function. #14
  • Contract<T>'s T type should implement TopLevelStorage. #14

Full Changes List

Full Changelog: v0.3.0...v0.4.0

v0.3.0

07 Jan 13:47
bd30c05
Compare
Choose a tag to compare

Summary

Changed(Breaking)

  • Bump Stylus SDK to v0.7.0. #17
  • Bump alloy to v0.8.14. #20

Full Changes List

Full Changelog: v0.2.1...v0.3.0

v0.2.1

17 Dec 21:26
e59f9c6
Compare
Choose a tag to compare

Migrate motsu to its own repository.