{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/web3.js/issues/154","labels_url":"https://api.github.com/repos/ethereum/web3.js/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/web3.js/issues/154/comments","events_url":"https://api.github.com/repos/ethereum/web3.js/issues/154/events","html_url":"https://github.com/ethereum/web3.js/issues/154","id":67466029,"number":154,"title":"mandatory from in sendTransaction, add 'defaultAccount'","user":{"login":"debris","id":2613714,"avatar_url":"https://avatars.githubusercontent.com/u/2613714?v=3","gravatar_id":"","url":"https://api.github.com/users/debris","html_url":"https://github.com/debris","followers_url":"https://api.github.com/users/debris/followers","following_url":"https://api.github.com/users/debris/following{/other_user}","gists_url":"https://api.github.com/users/debris/gists{/gist_id}","starred_url":"https://api.github.com/users/debris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debris/subscriptions","organizations_url":"https://api.github.com/users/debris/orgs","repos_url":"https://api.github.com/users/debris/repos","events_url":"https://api.github.com/users/debris/events{/privacy}","received_events_url":"https://api.github.com/users/debris/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-09T22:41:18Z","updated_at":"2015-04-20T13:33:45Z","closed_at":"2015-04-20T12:38:34Z","body":"just a reminder to myself. \r\n- [x] [contract example](https://github.com/ethereum/web3.js/blob/master/example/contract.html) should be updated to use from (which is mandatory)\r\n- [x] add to web3 object property 'defaultAccount', which will be used as a from for transactions\r\n- [x] add from to [new Contract constructor call](https://github.com/ethereum/web3.js/blob/master/lib/web3/contract.js#L199)"},"comment":{"url":"https://api.github.com/repos/ethereum/web3.js/issues/comments/94451763","html_url":"https://github.com/ethereum/web3.js/issues/154#issuecomment-94451763","issue_url":"https://api.github.com/repos/ethereum/web3.js/issues/154","id":94451763,"user":{"login":"simondlr","id":716965,"avatar_url":"https://avatars.githubusercontent.com/u/716965?v=3","gravatar_id":"","url":"https://api.github.com/users/simondlr","html_url":"https://github.com/simondlr","followers_url":"https://api.github.com/users/simondlr/followers","following_url":"https://api.github.com/users/simondlr/following{/other_user}","gists_url":"https://api.github.com/users/simondlr/gists{/gist_id}","starred_url":"https://api.github.com/users/simondlr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simondlr/subscriptions","organizations_url":"https://api.github.com/users/simondlr/orgs","repos_url":"https://api.github.com/users/simondlr/repos","events_url":"https://api.github.com/users/simondlr/events{/privacy}","received_events_url":"https://api.github.com/users/simondlr/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T13:33:45Z","updated_at":"2015-04-20T13:33:45Z","body":"@derbis. Thanks, but I still don't quite understand what the new format is & what should be specified if you create a contract (& the documentation is still out of date)?\r\n\r\nWhat is required for it to work like before? ie contract.sendTransaction().doSomething() will correctly issue a tx to that contract? I see in the new examples you only specify the source? Aren't addresses also required? When I specify nothing (no data, or address), it prints out an address which I'm not sure where it is getting it from (it only has the ABI).\r\n\r\nAnything you \"don't\" add into the initial default will just have to be issued through the sendTransaction() right? Is that correct? ie, you instantiate with no extra options. You will have to manually add \"to\" and other options when you call the contract?"}}