Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 2.55 KB

CHANGELOG.md

File metadata and controls

32 lines (25 loc) · 2.55 KB

Changelog

0.4.0 (unreleased)

  • 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 to makeInterfaceId.ERC165, and add makeInterfaceId.ERC1820. (#21
  • Add possibility to configure a custom web3 instance. (#38)
  • Replace shouldFail with expectRevert, with an improved API. (#39)

How to upgrade from 0.3

  • Change all occurences of makeInterfaceId to makeInterfaceId.ERC165.
  • The shouldFail module has been renamed to expectRevert, and reverting.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

0.3.2 (2019-04-10)

  • Update ERC1820Registry address. (#26)

0.3.1 (2019-04-01)

  • Add support for environments using web3-provider-engine. (#24)

0.3.0 (2019-03-19)

  • chai is no longer exported, and should is no longer automatically installed. (#18)

How to upgrade from 0.2

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.