feat(ctb): MPT Fuzzing contract changes#4162
Closed
clabby wants to merge 1 commit intoclabby/ctb/merkle-trie-refactor/go-fuzzfrom
Closed
feat(ctb): MPT Fuzzing contract changes#4162clabby wants to merge 1 commit intoclabby/ctb/merkle-trie-refactor/go-fuzzfrom
clabby wants to merge 1 commit intoclabby/ctb/merkle-trie-refactor/go-fuzzfrom
Conversation
|
Contributor
Author
|
Current dependencies on/for this PR: This comment was auto-generated by Graphite. |
4d25279 to
5702fc5
Compare
857cb3d to
69d2346
Compare
977f35b to
939ec85
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Overview
Reopened version of #4008 - CircleCI didn't like the
@in the old branch name.Do not merge until after #4125 - bedrock contract tests will not pass due to the new
testFuzznaming convention changeAdds a fuzz test input generator for testing Bedrock's
MerkleTrie.sol.Go version of #3847
Tests
Adds fuzz tests for
MerkleTrie:testFuzz_get_validProofs_successtestFuzz_get_invalidRoot_revertstestFuzz_get_extraProofElements_revertstestFuzz_get_invalidLargeInternalHash_revertstestFuzz_get_invalidInternalNodeHash_revertstestFuzz_get_corruptedProof_revertstestFuzz_get_invalidDataRemainder_revertstestFuzz_get_prefixedValidKey_revertstestFuzz_get_emptyKey_revertstestFuzz_get_partialProof_revertsMetadata
ENG-3048