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

start property undefined return of contract.watchEvents #37

Open
sjaiswal1701 opened this issue Apr 14, 2020 · 0 comments
Open

start property undefined return of contract.watchEvents #37

sjaiswal1701 opened this issue Apr 14, 2020 · 0 comments

Comments

@sjaiswal1701
Copy link

When you call watchEvents it will give you an object in return with two property start and stop.
But in that object start property is undefined.

in return, there is a call for bindListener function instead just returning the reference of the bindListener function at line no 133 under file src/lib/core/Contract.js

  return {
            start: bindListener(), //here additional call to the bindListener function
            stop: () => {
                if (!listener)
                    return;

                clearInterval(listener);
                listener = false;
            }
        }
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

No branches or pull requests

1 participant