Waffle icon indicating copy to clipboard operation
Waffle copied to clipboard

Library for writing and testing smart contracts.

Results 94 Waffle issues
Sort by recently updated
recently updated
newest added

This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically....

The problem - usage of quotes or apostrophes in the revert strings.

Closes https://github.com/TrueFiEng/Waffle/issues/739 Closes https://github.com/TrueFiEng/Waffle/issues/557

It would be very convenient to have a combination of `closeTo` and `changeTokenBalance` matchers so that it's possible to check that balance changed within some margin of error. I propose...

enhancement

**Describe the bug** It seems like `await mockContract.mock..returns()` doesn't work if test running two and more test files. I'm using hardhat environment. I have a `contractA` and `mockContractB`. `contractA` interacts...

bug
waffle-mock-contract

**Is your feature request related to a problem? Please describe.** Unit tests assert change of NFT balances; It will be great to have matcher to check NFT balance change after...

enhancement

It seems that MockProvider is not compatible with Solcover tool, all the metrics are always 0. After changing to ethers provider it started to work immediately. I'm using: "@nomiclabs/hardhat-waffle": "^2.0.3",...

bug

**Setup:** waffle/ethers/hardhat **Issue:** I am testing a contract that has a function which calls another contract's function using abi.encodeWithSignature. Below is example code based on the contract I am testing:...

waffle-mock-contract

Goals for Waffle 4.0: - Improved speed of test execution - Deeper integration with HardHat - Increased type safety (TypeScript types as first class citizen) Features: - [x] Remove JEST...

From what I understand from the [Doppleganger code](https://github.com/EthWorks/Waffle/blob/master/waffle-mock-contract/src/Doppelganger.sol), it mocks function calls by hashing `msg.data` and creating a hashmap of the result to the mocked function. How do I predictably...

waffle-mock-contract