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