{"action":"closed","issue":{"url":"https://api.github.com/repos/ConsenSys/truffle/issues/245","repository_url":"https://api.github.com/repos/ConsenSys/truffle","labels_url":"https://api.github.com/repos/ConsenSys/truffle/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/ConsenSys/truffle/issues/245/comments","events_url":"https://api.github.com/repos/ConsenSys/truffle/issues/245/events","html_url":"https://github.com/ConsenSys/truffle/issues/245","id":172216998,"number":245,"title":"`truffle exec` broken in 2.0.7","user":{"login":"tcoulter","id":92629,"avatar_url":"https://avatars.githubusercontent.com/u/92629?v=3","gravatar_id":"","url":"https://api.github.com/users/tcoulter","html_url":"https://github.com/tcoulter","followers_url":"https://api.github.com/users/tcoulter/followers","following_url":"https://api.github.com/users/tcoulter/following{/other_user}","gists_url":"https://api.github.com/users/tcoulter/gists{/gist_id}","starred_url":"https://api.github.com/users/tcoulter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcoulter/subscriptions","organizations_url":"https://api.github.com/users/tcoulter/orgs","repos_url":"https://api.github.com/users/tcoulter/repos","events_url":"https://api.github.com/users/tcoulter/events{/privacy}","received_events_url":"https://api.github.com/users/tcoulter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ConsenSys/truffle/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-19T20:45:55Z","updated_at":"2016-08-22T20:15:31Z","closed_at":"2016-08-22T20:15:31Z","body":"From Gitter via @maxweng:\n\n@tcoulter I’ve updated to v2.0.7. Then, when I ran truffle exec, it just crashed saying TypeError: Cannot read property 'from' of undefined at /usr/local/lib/node_modules/truffle/lib/contracts.js:57:46.\nI had traced into it. And I found that it’s something to do with your latest update on Contract.js.\nIt seems that in Contracts.provision, you updated the\nvar defaults = {\n            from: options.from || options.rpc.from,\n            gas: options.gas || options.rpc.gas,\n            gasPrice: options.gasPrice || options.rpc.gasPrice\n};\n\nMax Weng @maxweng Aug 10 21:13\nBut at # 100 line in require.js, where you call Contracts.provision(), you seem to construct a new Option object to pass in, instead of passing the entire options.\nI think that’s the cause of the crash. I just changed it to pass in the options variable. And it seems to be working now."}}
{"actor":{"display_login":"tcoulter"}}