{"action":"created","issue":{"url":"https://api.github.com/repos/MetaMask/provider-engine/issues/226","repository_url":"https://api.github.com/repos/MetaMask/provider-engine","labels_url":"https://api.github.com/repos/MetaMask/provider-engine/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/MetaMask/provider-engine/issues/226/comments","events_url":"https://api.github.com/repos/MetaMask/provider-engine/issues/226/events","html_url":"https://github.com/MetaMask/provider-engine/issues/226","id":306624821,"number":226,"title":"Events are properly detected on ropsten but are not detected on mainnet with metamask.","user":{"login":"win2win","id":18016418,"avatar_url":"https://avatars1.githubusercontent.com/u/18016418?v=4","gravatar_id":"","url":"https://api.github.com/users/win2win","html_url":"https://github.com/win2win","followers_url":"https://api.github.com/users/win2win/followers","following_url":"https://api.github.com/users/win2win/following{/other_user}","gists_url":"https://api.github.com/users/win2win/gists{/gist_id}","starred_url":"https://api.github.com/users/win2win/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/win2win/subscriptions","organizations_url":"https://api.github.com/users/win2win/orgs","repos_url":"https://api.github.com/users/win2win/repos","events_url":"https://api.github.com/users/win2win/events{/privacy}","received_events_url":"https://api.github.com/users/win2win/received_events","type":"User","site_admin":false},"labels":[{"id":297184263,"url":"https://api.github.com/repos/MetaMask/provider-engine/labels/bug","name":"bug","color":"fc2929","default":true},{"id":297184268,"url":"https://api.github.com/repos/MetaMask/provider-engine/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-19T20:35:30Z","updated_at":"2018-03-20T00:29:37Z","closed_at":null,"author_association":"NONE","body":"I have implemented provider-engine and it works great when contract is deployed on ropsten with metamask. The same dapp when switched to mainnet, never returns events \r\n\r\nI have disabled provider-engine and work directly with metamask. \r\nThe dapp is working as expected events are received. \r\n\r\nAny ideas what I could do to fix it or troubleshoot?"},"comment":{"url":"https://api.github.com/repos/MetaMask/provider-engine/issues/comments/374431493","html_url":"https://github.com/MetaMask/provider-engine/issues/226#issuecomment-374431493","issue_url":"https://api.github.com/repos/MetaMask/provider-engine/issues/226","id":374431493,"user":{"login":"win2win","id":18016418,"avatar_url":"https://avatars1.githubusercontent.com/u/18016418?v=4","gravatar_id":"","url":"https://api.github.com/users/win2win","html_url":"https://github.com/win2win","followers_url":"https://api.github.com/users/win2win/followers","following_url":"https://api.github.com/users/win2win/following{/other_user}","gists_url":"https://api.github.com/users/win2win/gists{/gist_id}","starred_url":"https://api.github.com/users/win2win/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/win2win/subscriptions","organizations_url":"https://api.github.com/users/win2win/orgs","repos_url":"https://api.github.com/users/win2win/repos","events_url":"https://api.github.com/users/win2win/events{/privacy}","received_events_url":"https://api.github.com/users/win2win/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T00:29:37Z","updated_at":"2018-03-20T00:29:37Z","author_association":"NONE","body":"I have another deployment which works well with this setup on mainnet and metamask.  \r\nThe difference only is that this one accepts payments and uses contract factory. \r\n\r\nAlso I'm initializing filter subprovider.\r\n\r\nHere is the portion of the code initializing provider-engine. \r\n\r\n\r\n`const ProviderEngine = require('web3-provider-engine')\r\nconst CacheSubprovider = require('web3-provider-engine/subproviders/cache.js')\r\nconst FilterSubprovider = require('web3-provider-engine/subproviders/filters.js')\r\nconst Web3Subprovider = require(\"web3-provider-engine/subproviders/web3.js\");\r\n\r\nvar provider = (window.web3 && window.web3.currentProvider);\r\n\r\n\r\n\r\nvar engine = new ProviderEngine({\r\n  getAccounts: function(){},\r\n  pollingInterval: 1000\r\n  });\r\n\r\n  \r\n  \r\n  engine.addProvider(new CacheSubprovider());\r\n  engine.addProvider(new FilterSubprovider());\r\n  engine.addProvider(new Web3Subprovider(provider));\r\n\r\n  engine.on('block', function(block) {\r\n    console.log('================================')\r\n    var decimal = (block.number[0] << 16) | (block.number[1] << 8) | block.number[2]\r\n    console.log('BLOCK CHANGED:', '#' + decimal, '0x' + block.hash.toString('hex'))\r\n    console.log('================================')\r\n  })\r\n  engine.start();\r\n  window.web3= new Web3(engine)`\r\n\r\nHere is the transaction which event hasn't been caught in the front end. \r\n\r\nhttps://etherscan.io/tx/0x209a78f3679d73c61b4d0c070150364f19e34dde8fa0c44631c0c234db17ce09\r\n"}}
{"actor":{"display_login":"win2win"}}