{"action":"created","issue":{"url":"https://api.github.com/repos/evolutionlandorg/tron-contracts/issues/17","repository_url":"https://api.github.com/repos/evolutionlandorg/tron-contracts","labels_url":"https://api.github.com/repos/evolutionlandorg/tron-contracts/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/evolutionlandorg/tron-contracts/issues/17/comments","events_url":"https://api.github.com/repos/evolutionlandorg/tron-contracts/issues/17/events","html_url":"https://github.com/evolutionlandorg/tron-contracts/issues/17","id":390588803,"node_id":"MDU6SXNzdWUzOTA1ODg4MDM=","number":17,"title":"tronWeb seems to have problems with off-line signing.","user":{"login":"HackFisher","id":1070122,"node_id":"MDQ6VXNlcjEwNzAxMjI=","avatar_url":"https://avatars1.githubusercontent.com/u/1070122?v=4","gravatar_id":"","url":"https://api.github.com/users/HackFisher","html_url":"https://github.com/HackFisher","followers_url":"https://api.github.com/users/HackFisher/followers","following_url":"https://api.github.com/users/HackFisher/following{/other_user}","gists_url":"https://api.github.com/users/HackFisher/gists{/gist_id}","starred_url":"https://api.github.com/users/HackFisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HackFisher/subscriptions","organizations_url":"https://api.github.com/users/HackFisher/orgs","repos_url":"https://api.github.com/users/HackFisher/repos","events_url":"https://api.github.com/users/HackFisher/events{/privacy}","received_events_url":"https://api.github.com/users/HackFisher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-13T09:27:33Z","updated_at":"2018-12-13T09:42:43Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"https://github.com/tronprotocol/tron-web/issues/104"},"comment":{"url":"https://api.github.com/repos/evolutionlandorg/tron-contracts/issues/comments/446904652","html_url":"https://github.com/evolutionlandorg/tron-contracts/issues/17#issuecomment-446904652","issue_url":"https://api.github.com/repos/evolutionlandorg/tron-contracts/issues/17","id":446904652,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjkwNDY1Mg==","user":{"login":"HackFisher","id":1070122,"node_id":"MDQ6VXNlcjEwNzAxMjI=","avatar_url":"https://avatars1.githubusercontent.com/u/1070122?v=4","gravatar_id":"","url":"https://api.github.com/users/HackFisher","html_url":"https://github.com/HackFisher","followers_url":"https://api.github.com/users/HackFisher/followers","following_url":"https://api.github.com/users/HackFisher/following{/other_user}","gists_url":"https://api.github.com/users/HackFisher/gists{/gist_id}","starred_url":"https://api.github.com/users/HackFisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HackFisher/subscriptions","organizations_url":"https://api.github.com/users/HackFisher/orgs","repos_url":"https://api.github.com/users/HackFisher/repos","events_url":"https://api.github.com/users/HackFisher/events{/privacy}","received_events_url":"https://api.github.com/users/HackFisher/received_events","type":"User","site_admin":false},"created_at":"2018-12-13T09:42:43Z","updated_at":"2018-12-13T09:42:43Z","author_association":"CONTRIBUTOR","body":"https://github.com/tronprotocol/tron-web/blob/master/src/lib/contract/method.js#L163\r\n\r\n```\r\nconst address = privateKey ? this.tronWeb.address.fromPrivateKey(privateKey) : this.tronWeb.defaultAddress.base58;\r\n            const transaction = await this.tronWeb.transactionBuilder.triggerSmartContract(\r\n                this.contract.address,\r\n                this.functionSelector,\r\n                options.feeLimit,\r\n                options.callValue,\r\n                parameters,\r\n                this.tronWeb.address.toHex(address)\r\n            );\r\n\r\n            if (!transaction.result || !transaction.result.result)\r\n                return callback('Unknown error: ' + JSON.stringify(transaction, null, 2));\r\n\r\n            // If privateKey is false, this won't be signed here. We assume sign functionality will be replaced.\r\n            const signedTransaction = await this.tronWeb.trx.sign(transaction.transaction, privateKey);\r\n\r\n            if (!signedTransaction.signature) {\r\n                if (!privateKey)\r\n                    return callback('Transaction was not signed properly');\r\n                \r\n                return callback('Invalid private key provided');\r\n            }\r\n\r\n            const broadcast = await this.tronWeb.trx.sendRawTransaction(signedTransaction);\r\n```"}}
{"actor":{"display_login":"HackFisher"}}