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 c969fe5 commit bfcf224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src.ts/utils/rlp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function _decode(data: Uint8Array, offset: number): { consumed: number, result:
} else if (data[offset] >= 0x80) {
var length = data[offset] - 0x80;
if (offset + 1 + length > data.length) {
throw new Error('invlaid rlp data');
throw new Error('invalid rlp data');
}

var result = hexlify(data.slice(offset + 1, offset + 1 + length));
Expand Down

0 comments on commit bfcf224

Please sign in to comment.