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

Recently events from solidity are not firing on Chrome, but working fine on firefox and Brave. #2952

Closed
kevinstotz opened this issue Jan 13, 2018 · 5 comments

Comments

@kevinstotz
Copy link

I have a contract running on Ropsten and the events show up in Brave and Firefox, but nothing in Chrome. This is a recent issue. This seems odd.

solidity
contract MyLife is Owned, Accounting {

event FeePaid(address indexed _from, bytes32 _sentence);

}

function payForEntry(bytes32 sentenceHash) onlyBy(msg.sender) public payable {
FeePaid(msg.sender, sentenceHash);
}

JS.

let c = web3.eth.contract(_this.data.contract.abi, _this.data.contract.address)
let cI = c.at(_this.data.contract.address)
cI.FeePaid({},{address:_this.data.contract.address}).watch(function (error, result) {
if (!error) {
console.log("Good" + result)
} else {
console.log(error)
}
})

@kevinstotz kevinstotz changed the title Metamask and chrome. Recently events from solidity are not firing. Events firing on firefox and Brave. Metamask and chrome. Recently events from solidity are not firing, but working fine on firefox and Brave. Jan 13, 2018
@kevinstotz kevinstotz changed the title Metamask and chrome. Recently events from solidity are not firing, but working fine on firefox and Brave. Recently events from solidity are not firing on Chrome, but working fine on firefox and Brave. Jan 13, 2018
@uxdxdev
Copy link

uxdxdev commented Jan 14, 2018

I'm also having this issue. I have an Ethereum node running locally, Chrome does not have MM installed and is getting the currentProvider data directly from localhost:8545, Firefox has MM installed. The contract is called to create an event from Firefox, which triggers MM for the GAS payment. Chrome is connected to the node and can receive the event data, but in Firefox MM does not propagate the event data to the application. However the callback is triggered when the event is called.

createEvent: function() {

    Contract.deployed().then(function(contractInstance) {

      contractInstance.createRandomEvent("test_input", {from:account}).then(function(result){
        console.log("called createRandomEvent() function ");
      });
    });
  }

Firefox MM console logs
screen shot 2018-01-14 at 01 54 46

@kevinstotz
Copy link
Author

I am not sure why..but it's working again.

@halgurdh
Copy link

I have the same issue, when i try it in incognito mode it works, but when i try normal, it doesn't

@bdresser
Copy link
Contributor

@halgurdh are you still experiencing this issue? and you're saying it works fine in firefox & incognito chrome, but not regular chrome?

@halgurdh
Copy link

@bdresser not anymore, I think it was something else that wasn't working which didn't fire the events. Its works now.

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

4 participants