Skip to content

Switched key and value in forEach-callback? #18

Closed
@littleant

Description

I don't know if this is intentional, but the following line seems to be wrong:

shares.forEach((k, v) => {

forEach((k, v) => ...) should be forEach((v, k) => ...).
Below this line the share-value k is compared with the index x.

I currently don't understand the interpolate-function fully, but this doesn't look right to me.
A share is a binary blob, that is compared to an index, which is an integer...

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions