{"action":"created","issue":{"url":"https://api.github.com/repos/aionnetwork/aion/issues/717","repository_url":"https://api.github.com/repos/aionnetwork/aion","labels_url":"https://api.github.com/repos/aionnetwork/aion/issues/717/labels{/name}","comments_url":"https://api.github.com/repos/aionnetwork/aion/issues/717/comments","events_url":"https://api.github.com/repos/aionnetwork/aion/issues/717/events","html_url":"https://github.com/aionnetwork/aion/issues/717","id":383026259,"node_id":"MDU6SXNzdWUzODMwMjYyNTk=","number":717,"title":"Empty address in log","user":{"login":"yulongaion","id":35706111,"node_id":"MDQ6VXNlcjM1NzA2MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/35706111?v=4","gravatar_id":"","url":"https://api.github.com/users/yulongaion","html_url":"https://github.com/yulongaion","followers_url":"https://api.github.com/users/yulongaion/followers","following_url":"https://api.github.com/users/yulongaion/following{/other_user}","gists_url":"https://api.github.com/users/yulongaion/gists{/gist_id}","starred_url":"https://api.github.com/users/yulongaion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yulongaion/subscriptions","organizations_url":"https://api.github.com/users/yulongaion/orgs","repos_url":"https://api.github.com/users/yulongaion/repos","events_url":"https://api.github.com/users/yulongaion/events{/privacy}","received_events_url":"https://api.github.com/users/yulongaion/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-21T09:26:03Z","updated_at":"2018-11-21T09:38:24Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I got a log with address empty, which fails the web3 client; however, the explorer is displaying a correct address, https://mastery.aion.network/#/transaction/a18d9b7d1b6f6c0209088fadfd4487a3cf623e3b3d4559abcce26b6b1934fda8. \r\n\r\n```\r\naion-127.0.0.1:8545> eth.getTransactionReceipt(\"0xa18d9b7d1b6f6c0209088fadfd4487a3cf623e3b3d4559abcce26b6b1934fda8\")\r\n{ blockHash: '0xadc75e6134978a472e4a42255aab0ea33a0cd85ed56633423414cfb79b13028c',\r\n  nrgPrice: '0x02540be400',\r\n  logsBloom: '00000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000080000010000000000000000002000000000000000000000000000000000000000000',\r\n  nrgUsed: 249417,\r\n  contractAddress: '0xa06f2d4682cd64234d7aa644da23fa5edccc9e3c5bdf888f9a6db7f9128d344f',\r\n  transactionIndex: 0,\r\n  transactionHash: '0xa18d9b7d1b6f6c0209088fadfd4487a3cf623e3b3d4559abcce26b6b1934fda8',\r\n  gasLimit: '0x0f4240',\r\n  cumulativeNrgUsed: 249417,\r\n  gasUsed: '0x03ce49',\r\n  blockNumber: 1023871,\r\n  root: '7e8c4e89a68b07f918a526d6368fdac421835f158155e50b41157b8cd4671fdb',\r\n  cumulativeGasUsed: '0x3ce49',\r\n  from: '0xa005bebbea7fc4475f2655cd3485f99db221c692e388052f345c628ebb028534',\r\n  to: '0x',\r\n  logs: \r\n   [ { address: '0x',\r\n       logIndex: 0,\r\n       data: '0x0000000000000000000000000000000100000000000000000000000000000030000000000000000000000000000000500000000000000000000000000000000361626300000000000000000000000000000000000000000000000000000000020000000000000000000000000000000100000000000000000000000000000002',\r\n       topics: [Array],\r\n       blockNumber: 1023871,\r\n       transactionIndex: 0 } ],\r\n  gasPrice: '0x02540be400',\r\n  status: '0x1' }\r\n```"},"comment":{"url":"https://api.github.com/repos/aionnetwork/aion/issues/comments/440598228","html_url":"https://github.com/aionnetwork/aion/issues/717#issuecomment-440598228","issue_url":"https://api.github.com/repos/aionnetwork/aion/issues/717","id":440598228,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDU5ODIyOA==","user":{"login":"yulongaion","id":35706111,"node_id":"MDQ6VXNlcjM1NzA2MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/35706111?v=4","gravatar_id":"","url":"https://api.github.com/users/yulongaion","html_url":"https://github.com/yulongaion","followers_url":"https://api.github.com/users/yulongaion/followers","following_url":"https://api.github.com/users/yulongaion/following{/other_user}","gists_url":"https://api.github.com/users/yulongaion/gists{/gist_id}","starred_url":"https://api.github.com/users/yulongaion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yulongaion/subscriptions","organizations_url":"https://api.github.com/users/yulongaion/orgs","repos_url":"https://api.github.com/users/yulongaion/repos","events_url":"https://api.github.com/users/yulongaion/events{/privacy}","received_events_url":"https://api.github.com/users/yulongaion/received_events","type":"User","site_admin":false},"created_at":"2018-11-21T09:38:24Z","updated_at":"2018-11-21T09:38:24Z","author_association":"CONTRIBUTOR","body":"Was digging into this issue a bit, and found the issue can be pinpointed to https://github.com/aionnetwork/aion/blob/843761824132b2dfe2a6e8dbc5b755167f571718/modApiServer/src/org/aion/api/server/types/TxRecptLg.java#L59\r\n\r\nI think the above condition check is unnecessary, because an account creation transaction (`tx.getTo() == null`) can call another contract which emits a log."}}
{"actor":{"display_login":"yulongaion"}}