{"action":"opened","issue":{"url":"https://api.github.com/repos/tendermint/tendermint/issues/121","labels_url":"https://api.github.com/repos/tendermint/tendermint/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/tendermint/tendermint/issues/121/comments","events_url":"https://api.github.com/repos/tendermint/tendermint/issues/121/events","html_url":"https://github.com/tendermint/tendermint/issues/121","id":97777190,"number":121,"title":"TxCache toVMAccount and toStateAccount are not compatible","user":{"login":"jaekwon","id":53785,"avatar_url":"https://avatars.githubusercontent.com/u/53785?v=3","gravatar_id":"","url":"https://api.github.com/users/jaekwon","html_url":"https://github.com/jaekwon","followers_url":"https://api.github.com/users/jaekwon/followers","following_url":"https://api.github.com/users/jaekwon/following{/other_user}","gists_url":"https://api.github.com/users/jaekwon/gists{/gist_id}","starred_url":"https://api.github.com/users/jaekwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaekwon/subscriptions","organizations_url":"https://api.github.com/users/jaekwon/orgs","repos_url":"https://api.github.com/users/jaekwon/repos","events_url":"https://api.github.com/users/jaekwon/events{/privacy}","received_events_url":"https://api.github.com/users/jaekwon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-28T18:57:16Z","updated_at":"2015-07-28T18:57:16Z","closed_at":null,"body":"To reproduce:\r\n\r\n* An account is created and saved in a BlockCache\r\n* The block is committed\r\n* A new BlockCache is created\r\n* The account is loaded in a VM\r\n* The account is saved\r\n* The account is written to the BlockCache, but with the 0 prefix still attached, which is wrong.\r\n\r\nShould write a simple test to convert between toVMAccount and toStateAccount."}}