-
Notifications
You must be signed in to change notification settings - Fork 777
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure invalid RLPs cannot be decoded (#101)
* rlp: add invalid tests from ethereum/tests * rlp: remove empty string as invalid input * rlp: additional error checks * tidy tests * improve safeSlice error message return statement in else block can be placed outside if statement (https://eslint.org/docs/rules/no-else-return) * tidy * rlp: add cases from Geth * rlp: tests: cleanup * rlp: tests: fix description * rlp: tests: create invalid test file * rlp: dataTypes: increase getLength coverage * rlp: check and remove uncovered lines * Apply suggestions from code review two nits * clarify error messages * Update test/dataTypes.spec.ts Co-authored-by: acolytec3 <17355484+acolytec3@users.noreply.github.com> * Update test/official.spec.ts Co-authored-by: acolytec3 <17355484+acolytec3@users.noreply.github.com> * lint * fix one more deprecated equal * tests: change deprecated methods to their new variants Co-authored-by: Ryan Ghods <ryan@ryanio.com> Co-authored-by: acolytec3 <17355484+acolytec3@users.noreply.github.com>
- Loading branch information
1 parent
efe7073
commit ced5ef2
Showing
6 changed files
with
507 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.