{"action":"closed","issue":{"url":"https://api.github.com/repos/MetaMask/metamask-plugin/issues/602","repository_url":"https://api.github.com/repos/MetaMask/metamask-plugin","labels_url":"https://api.github.com/repos/MetaMask/metamask-plugin/issues/602/labels{/name}","comments_url":"https://api.github.com/repos/MetaMask/metamask-plugin/issues/602/comments","events_url":"https://api.github.com/repos/MetaMask/metamask-plugin/issues/602/events","html_url":"https://github.com/MetaMask/metamask-plugin/issues/602","id":174553441,"number":602,"title":"getStorageAt error","user":{"login":"kfichter","id":14298799,"avatar_url":"https://avatars.githubusercontent.com/u/14298799?v=3","gravatar_id":"","url":"https://api.github.com/users/kfichter","html_url":"https://github.com/kfichter","followers_url":"https://api.github.com/users/kfichter/followers","following_url":"https://api.github.com/users/kfichter/following{/other_user}","gists_url":"https://api.github.com/users/kfichter/gists{/gist_id}","starred_url":"https://api.github.com/users/kfichter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kfichter/subscriptions","organizations_url":"https://api.github.com/users/kfichter/orgs","repos_url":"https://api.github.com/users/kfichter/repos","events_url":"https://api.github.com/users/kfichter/events{/privacy}","received_events_url":"https://api.github.com/users/kfichter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MetaMask/metamask-plugin/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/MetaMask/metamask-plugin/labels/cant%20reproduce","name":"cant reproduce","color":"e99695"},{"url":"https://api.github.com/repos/MetaMask/metamask-plugin/labels/ready","name":"ready","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/MetaMask/metamask-plugin/milestones/13","html_url":"https://github.com/MetaMask/metamask-plugin/milestones/Core%20Maintenance","labels_url":"https://api.github.com/repos/MetaMask/metamask-plugin/milestones/13/labels","id":2062874,"number":13,"title":"Core Maintenance","description":"High priority items that need doing immediately, like bug fixes.","creator":{"login":"flyswatter","id":542863,"avatar_url":"https://avatars.githubusercontent.com/u/542863?v=3","gravatar_id":"","url":"https://api.github.com/users/flyswatter","html_url":"https://github.com/flyswatter","followers_url":"https://api.github.com/users/flyswatter/followers","following_url":"https://api.github.com/users/flyswatter/following{/other_user}","gists_url":"https://api.github.com/users/flyswatter/gists{/gist_id}","starred_url":"https://api.github.com/users/flyswatter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flyswatter/subscriptions","organizations_url":"https://api.github.com/users/flyswatter/orgs","repos_url":"https://api.github.com/users/flyswatter/repos","events_url":"https://api.github.com/users/flyswatter/events{/privacy}","received_events_url":"https://api.github.com/users/flyswatter/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":4,"state":"open","created_at":"2016-10-11T17:36:57Z","updated_at":"2016-10-17T18:11:48Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-09-01T15:25:24Z","updated_at":"2016-10-17T18:11:48Z","closed_at":"2016-10-17T18:11:48Z","body":"Running Ubuntu 14.04 LTS and Chrome/Version 51.0.2704.63 (64-bit). I have some front end code making a web3 call to get the storage of a certain contract:\r\n```\r\ngetLength(): Promise<any> {\r\n    let p = new Promise<any>((resolve, reject) => {\r\n        this.web3.eth.getStorageAt(addr, 3, (error, result) => {\r\n            if (!error) {\r\n                resolve(this.web3.toDecimal(result));\r\n            } else {\r\n                reject(error);\r\n            }\r\n        });\r\n    });\r\n    return p;\r\n}\r\n```\r\n\r\nMaking this call via an HTTP node:\r\n`this.web3 = new this.Web3(new this.Web3.providers.HttpProvider(this.nodeIP));`\r\nwill correctly bring back the value I requested.\r\n\r\nHowever, making the call via MetaMask will bring back the old value, even if that value has since changed. Disabling MetaMask and enabling it again fixes the issue and allows MetaMask to bring back the correct value."}}
{"actor":{"display_login":"flyswatter"}}