- Fix
shouldFail.reverting.withMessage
on non-Ganache chains. (#25 - Fix
send.transaction
not working on contracts with a fallback function. (#26 shouldFail.reverting.withMessage
fails if no error string is provided. (#28- Rename
makeInterfaceId
tomakeInterfaceId.ERC165
, and addmakeInterfaceId.ERC1820
. (#21 - Add possibility to configure a custom web3 instance. (#38)
- Replace
shouldFail
withexpectRevert
, with an improved API. (#39)
- Change all occurences of
makeInterfaceId
tomakeInterfaceId.ERC165
. - The
shouldFail
module has been renamed toexpectRevert
, andreverting.withMessage
is now the main module export.
0.3 | 0.4 |
---|---|
shouldFail.reverting.withMessage |
expectRevert |
shouldFail.reverting |
expectRevert.unspecified |
shouldFail.throwing |
expectRevert.invalidOpcode |
shouldFail.outOfGas |
expectRevert.outOfGas |
- Update ERC1820Registry address. (#26)
- Add support for environments using
web3-provider-engine
. (#24)
chai
is no longer exported, andshould
is no longer automatically installed. (#18)
If you use Chai assertions in your project you should make sure to explicitly install it: npm install chai
. If you need to access the chai
instance you should now get it through require('chai')
. If you use should
-style assertions you should set it up manually now, by adding require('chai/register-should')
in your tests, or e.g. in your Truffle config. Check out OpenZeppelin's upgrade commit in case it might be helpful: cf7375d
.