Skip to content

2.3.0

Compare
Choose a tag to compare
@marekkirejczyk marekkirejczyk released this 16 Jan 09:33
· 382 commits to master since this release

Changes:

  • Istanbul support
  • Add event emitted matcher negation support, e.g.:
    await expect(events.emitTwo()).to.not.emit(events, 'One');
  • Migrate repository to a monorepo. Packages:
    • waffle-cli - direct successor to the previous repository root
    • waffle-chai - home of the chai matchers
    • waffle-provider - implementation of the MockProvider and fixtures
    • waffle-compiler - compilation of Solidity smart contracts
  • Add MockProvider class
    • it extends providers.Web3Provider
    • you create it using new MockProvider(options?) instead of createMockProvider(options?)
    • use provider.getWallets() instead of getWallets(provider). This allows for a shorthand: new MockProvider().getWallets()
    • use provider.createEmptyWallet() to get a random Wallet without any ETH
  • Deprecate createMockProvider
  • Deprecate getGanacheOptions
  • Deprecate getWallets