From 47d92aeff02cacfb26793850c7faef7cb21ce4cf Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Fri, 24 May 2019 14:47:31 -0400 Subject: [PATCH] Fixed typo in error message (#470). --- packages/strings/src.ts/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/strings/src.ts/index.ts b/packages/strings/src.ts/index.ts index 9768f16af1..eb162daba3 100644 --- a/packages/strings/src.ts/index.ts +++ b/packages/strings/src.ts/index.ts @@ -186,7 +186,7 @@ export function parseBytes32String(bytes: BytesLike): string { // Must be 32 bytes with a null-termination if (data.length !== 32) { throw new Error("invalid bytes32 - not 32 bytes long"); } - if (data[31] !== 0) { throw new Error("invalid bytes32 sdtring - no null terminator"); } + if (data[31] !== 0) { throw new Error("invalid bytes32 string - no null terminator"); } // Find the null termination let length = 31;