We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7964bf0 commit 5a69ba4Copy full SHA for 5a69ba4
packages/hardhat-chai-matchers/src/internal/reverted/reverted.ts
@@ -42,7 +42,7 @@ export function supportReverted(
42
43
if (receipt === null) {
44
// If the receipt is null, maybe the string is a bytes32 string
45
- if (isByte32String(hash)) {
+ if (isBytes32String(hash)) {
46
assert(false, "Expected transaction to be reverted");
47
return;
48
}
@@ -147,7 +147,7 @@ function isValidTransactionHash(x: string): boolean {
147
return /0x[0-9a-fA-F]{64}/.test(x);
148
149
150
-function isByte32String(v: string): boolean {
+function isBytes32String(v: string): boolean {
151
try {
152
parseBytes32String(v);
153
return true;
0 commit comments