Fixed typo in error message (#592).

This commit is contained in:
Richard Moore 2019-09-06 18:49:36 -04:00
parent 9c63b4a753
commit 6f4291f65f
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -126,7 +126,7 @@ function _decode(data: Uint8Array, offset: number): { consumed: number, result:
} else if (data[offset] >= 0x80) {
let length = data[offset] - 0x80;
if (offset + 1 + length > data.length) {
throw new Error("invlaid rlp data");
throw new Error("invalid rlp data");
}
let result = hexlify(data.slice(offset + 1, offset + 1 + length));