Timeline for Testing for custom error reverts in hardhat
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 15, 2022 at 13:06 | history | edited | Patrick Collins | CC BY-SA 4.0 |
format
|
May 26, 2022 at 13:36 | comment | added | helpful hint | Anything inside the parenthesis will be fully executed before being passed into expect(). Thus, if awaiting the call will fail, expect() will never even be called to check. Instead, we just pass in the Promise<> to expect() and await for expect() to decide what to do -- which it is fully capable of catching and comparing Promise<> errors when used with .to.be.revertedWith() | |
May 25, 2022 at 11:50 | comment | added | Deepak Bhavsar | this worked. any idea why it didn't worked when written "await" inside bracket? | |
Mar 9, 2022 at 2:09 | vote | accept | Patrick Collins | ||
S Mar 9, 2022 at 1:16 | review | First answers | |||
Mar 9, 2022 at 17:07 | |||||
S Mar 9, 2022 at 1:16 | history | answered | helpful hint | CC BY-SA 4.0 |