Skip to content

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