{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/browser-solidity/issues/248","repository_url":"https://api.github.com/repos/ethereum/browser-solidity","labels_url":"https://api.github.com/repos/ethereum/browser-solidity/issues/248/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/browser-solidity/issues/248/comments","events_url":"https://api.github.com/repos/ethereum/browser-solidity/issues/248/events","html_url":"https://github.com/ethereum/browser-solidity/issues/248","id":178099656,"number":248,"title":"Values of a new contract are not displayed","user":{"login":"clivebluston","id":8289592,"avatar_url":"https://avatars.githubusercontent.com/u/8289592?v=3","gravatar_id":"","url":"https://api.github.com/users/clivebluston","html_url":"https://github.com/clivebluston","followers_url":"https://api.github.com/users/clivebluston/followers","following_url":"https://api.github.com/users/clivebluston/following{/other_user}","gists_url":"https://api.github.com/users/clivebluston/gists{/gist_id}","starred_url":"https://api.github.com/users/clivebluston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clivebluston/subscriptions","organizations_url":"https://api.github.com/users/clivebluston/orgs","repos_url":"https://api.github.com/users/clivebluston/repos","events_url":"https://api.github.com/users/clivebluston/events{/privacy}","received_events_url":"https://api.github.com/users/clivebluston/received_events","type":"User","site_admin":false},"labels":[{"id":378080983,"url":"https://api.github.com/repos/ethereum/browser-solidity/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-20T15:49:29Z","updated_at":"2016-11-14T14:38:58Z","closed_at":null,"body":"Using Firefox 47.0.1\nInstead we see the following:\nTypeError: self.vmTraces[self.processingHash] is undefined\n\nTo reproduce just create the following contract and look at the value of number1,2, and 3.\n\npragma solidity ^0.4.1;\ncontract owned {\nowned public owner;\nuint32 public number1 = 0;\nuint32 public number2 = 0;\nuint32 public number3 = 0;\n\n/\\* Constructor */\nfunction owned() {\n    owner = owned(msg.sender);\n}\n\nmodifier onlyOwner {\n    if (msg.sender != address(owner)) throw;\n    _;\n}\n\nfunction transferOwnership(owned newOwner) onlyOwner {\n    owner = newOwner;\n}\n\nfunction getContract() returns (owned contractAddress){\n    return this;\n}\n\n}\n"},"comment":{"url":"https://api.github.com/repos/ethereum/browser-solidity/issues/comments/260351343","html_url":"https://github.com/ethereum/browser-solidity/issues/248#issuecomment-260351343","issue_url":"https://api.github.com/repos/ethereum/browser-solidity/issues/248","id":260351343,"user":{"login":"yann300","id":6940742,"avatar_url":"https://avatars.githubusercontent.com/u/6940742?v=3","gravatar_id":"","url":"https://api.github.com/users/yann300","html_url":"https://github.com/yann300","followers_url":"https://api.github.com/users/yann300/followers","following_url":"https://api.github.com/users/yann300/following{/other_user}","gists_url":"https://api.github.com/users/yann300/gists{/gist_id}","starred_url":"https://api.github.com/users/yann300/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yann300/subscriptions","organizations_url":"https://api.github.com/users/yann300/orgs","repos_url":"https://api.github.com/users/yann300/repos","events_url":"https://api.github.com/users/yann300/events{/privacy}","received_events_url":"https://api.github.com/users/yann300/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T14:38:58Z","updated_at":"2016-11-14T14:38:58Z","body":"Not sure yet but:\r\nI use the onStep of the vm to compute the trace:\r\nhttps://github.com/ethereum/remix/blob/master/src/web3Provider/web3VmProvider.js#L76\r\nI need to know which tx is executing at this point so I save the current tx hash in\r\nhttps://github.com/ethereum/remix/blob/master/src/web3Provider/web3VmProvider.js#L44\r\nin case of a call, everything is ran asynchronously so we cannot rely on `beforeTx` to know what is the context of the `step` event.\r\nOne solution might be to do what is done in the cpp client:\r\ndo not save the trace at the time of execution but copy the vm state and execute calls/tx on top of the copied state when the user request a debug session.\r\n\r\n"}}
{"actor":{"display_login":"yann300"}}