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

Can't get logs from injected web3 #3114

Closed
roehst opened this issue Jan 29, 2018 · 2 comments
Closed

Can't get logs from injected web3 #3114

roehst opened this issue Jan 29, 2018 · 2 comments

Comments

@roehst
Copy link

roehst commented Jan 29, 2018

Hi, I can't get logs from the injected web3 instance, although I can with a second instance injected just for it;

    web3_ = new Web3(
        new Web3.providers.HttpProvider("http://localhost:8545"));

This will work and print events:

web3_.eth.contract(GameInterface.abi).at("0x1afb35b154f41d21d303958166f6536ab0199d4a").UserPlacesBet().watch(function (e, r) { console.log(r)})

But this will not:

web3.eth.contract(GameInterface.abi).at("0x1afb35b154f41d21d303958166f6536ab0199d4a").UserPlacesBet().watch(function (e, r) { console.log(r)})

Browser is Firefox, OS is Linux.

@antimatter15
Copy link

I believe this is a consequence of #2350

@danfinlay
Copy link
Contributor

Duplicate of #2978, feel free to rally there. Events/logs are hard to do before websockets.

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

3 participants