Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix stateroot and add test for devnet 7 #77

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

matkt
Copy link
Contributor

@matkt matkt commented Nov 4, 2024

PR description

Fixed Issue(s)

Copy link

github-actions bot commented Nov 4, 2024

  • I thought about the changelog.

@@ -225,7 +225,7 @@ public StemNode<V> replaceLocation(Bytes newLocation) {
Optional.of(newLocation),
stem,
hash,
(Optional<Bytes32>) previous,
Optional.empty(),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: previousHash is missing from the constructor javadoc

Copy link

@garyschulte garyschulte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@@ -160,8 +160,10 @@ private List<Bytes> getStemExtensions() {
int depth = location.size();
List<Bytes> extensions = new ArrayList<>();
for (Node<V> childNode : getChildren()) {
if (childNode instanceof StemNode) {
if (childNode instanceof StemNode<V>) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nbd, but instanceof doesn't consider generics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants