Skip to content

Commit 5a69ba4

Browse files
committedSep 12, 2024
fix typo
1 parent 7964bf0 commit 5a69ba4

File tree

1 file changed

+2
-2
lines changed
  • packages/hardhat-chai-matchers/src/internal/reverted

1 file changed

+2
-2
lines changed
 

‎packages/hardhat-chai-matchers/src/internal/reverted/reverted.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function supportReverted(
4242

4343
if (receipt === null) {
4444
// If the receipt is null, maybe the string is a bytes32 string
45-
if (isByte32String(hash)) {
45+
if (isBytes32String(hash)) {
4646
assert(false, "Expected transaction to be reverted");
4747
return;
4848
}
@@ -147,7 +147,7 @@ function isValidTransactionHash(x: string): boolean {
147147
return /0x[0-9a-fA-F]{64}/.test(x);
148148
}
149149

150-
function isByte32String(v: string): boolean {
150+
function isBytes32String(v: string): boolean {
151151
try {
152152
parseBytes32String(v);
153153
return true;

0 commit comments

Comments
 (0)
Please sign in to comment.