Skip to content

Commit

Permalink
Fixed typo in error message (#592).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Sep 6, 2019
1 parent 9c63b4a commit 6f4291f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rlp/src.ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 6f4291f

Please sign in to comment.