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

fixed issue with __buildTree arguments #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ShubhamShaswat
Copy link

This PR is regarding Issue #1
It seems like the makeTreeFromArray() method is not being called correctly. The issue is that when calling the private function __buildTree() inside makeTreeFromArray(), it's missing the required positional arguments.

It throws this Error:

TypeError: merkleTree.makeTreeFromArray.<locals>.__buildTree() missing 3 required positional arguments: 'root', 'i', and 'n'

Solution:

To fix this, you need to pass the necessary arguments when calling __buildTree() inside makeTreeFromArray(). Specifically, you need to pass self.root as the root node, and 0 and the length of the array as i and n respectively.

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.

1 participant