Skip to content

Commit

Permalink
Merge pull request #3162 from charles-cooper/patch-1
Browse files Browse the repository at this point in the history
doc fix: s/occurr/occur
  • Loading branch information
alcuadrado committed Sep 10, 2022
2 parents dbf7c0b + 84c3639 commit d377c39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/content/hardhat-chai-matchers/docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ await expect(contract.call()).to.be.revertedWith("Some revert message");
await expect(contract.call()).not.to.be.revertedWith("Another revert message");
```

The `revertedWithPanic` matcher allows you to assert that a revert did or didn't occurr with a specific [panic code](https://docs.soliditylang.org/en/v0.8.14/control-structures.html#panic-via-assert-and-error-via-require). You can match a panic code via its integer value (including via hexadecimal notation, such as `0x12`) or via the `PANIC_CODES` dictionary exported from this package:
The `revertedWithPanic` matcher allows you to assert that a revert did or didn't occur with a specific [panic code](https://docs.soliditylang.org/en/v0.8.14/control-structures.html#panic-via-assert-and-error-via-require). You can match a panic code via its integer value (including via hexadecimal notation, such as `0x12`) or via the `PANIC_CODES` dictionary exported from this package:

```js
const { PANIC_CODES } = require("@nomicfoundation/hardhat-chai-matchers/panic");
Expand Down

0 comments on commit d377c39

Please sign in to comment.