Releases: OpenZeppelin/stylus-test-helpers
Releases · OpenZeppelin/stylus-test-helpers
v0.4.0
Summary
Added
- Mocks for the
msg::sender()
. #14 - Mocks for the
msg::value()
andcontract::balance()
. #31 - Mocks for the external contract calls. Two and more contracts can be injected into a single test. #14
- Option to inject
Account
orAddress
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>
'sT
type should implementTopLevelStorage
. #14
Full Changes List
- feat: unit test external call +
msg::sender
mocks by @qalisander in #14. - feat: option to set
msg::value
in unit tests and track balances by @qalisander and @0xNeshi in #31. - build: bump
motsu-proc
tov0.4.0
by @qalisander in #40. - fix: cached storage bug + support reentrancy by @qalisander in #41.
Full Changelog: v0.3.0...v0.4.0
v0.3.0
Summary
Changed(Breaking)
Full Changes List
- build: bump Stylus SDK to v0.7.0 by @qalisander and @bidzyyys in #17.
- build: bump motsu-proc to v0.3.0 and alloy to v0.8.14 by @bidzyyys in #20.
Full Changelog: v0.2.1...v0.3.0
v0.2.1
Migrate motsu
to its own repository.