Fixed typo in error message (#470).

This commit is contained in:
Richard Moore 2019-05-24 14:48:01 -04:00
parent 2997bae935
commit 4a9373e773
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

@ -190,7 +190,7 @@ export function parseBytes32String(bytes: Arrayish): 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;