{"action":"created","issue":{"url":"https://api.github.com/repos/EthWorks/ethereum.rb/issues/98","repository_url":"https://api.github.com/repos/EthWorks/ethereum.rb","labels_url":"https://api.github.com/repos/EthWorks/ethereum.rb/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/EthWorks/ethereum.rb/issues/98/comments","events_url":"https://api.github.com/repos/EthWorks/ethereum.rb/issues/98/events","html_url":"https://github.com/EthWorks/ethereum.rb/issues/98","id":351450737,"node_id":"MDU6SXNzdWUzNTE0NTA3Mzc=","number":98,"title":"Deployment with truffle and infura","user":{"login":"toshiboy86","id":32396386,"node_id":"MDQ6VXNlcjMyMzk2Mzg2","avatar_url":"https://avatars2.githubusercontent.com/u/32396386?v=4","gravatar_id":"","url":"https://api.github.com/users/toshiboy86","html_url":"https://github.com/toshiboy86","followers_url":"https://api.github.com/users/toshiboy86/followers","following_url":"https://api.github.com/users/toshiboy86/following{/other_user}","gists_url":"https://api.github.com/users/toshiboy86/gists{/gist_id}","starred_url":"https://api.github.com/users/toshiboy86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toshiboy86/subscriptions","organizations_url":"https://api.github.com/users/toshiboy86/orgs","repos_url":"https://api.github.com/users/toshiboy86/repos","events_url":"https://api.github.com/users/toshiboy86/events{/privacy}","received_events_url":"https://api.github.com/users/toshiboy86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-17T04:11:51Z","updated_at":"2018-08-20T13:10:20Z","closed_at":null,"author_association":"NONE","body":"The execution of the code below causes an error.\r\nIt works when using Ganache instead of infura.\r\nI use wallet created by Metamask.\r\n\r\n[code]\r\n```\r\n\r\nTRUFFLE_PATH = '/Truffle/contract/'\r\n#URL = 'HTTP://127.0.0.1:7545' #Ganache\r\nURL = \"https://rinkeby.infura.io/v3/xxxx\" #Infura\r\n\r\n@client = Ethereum::HttpClient.new(INFURA_URL)\r\n@client.default_account = \"myEthereumAddress\"\r\n@contract = Ethereum::Contract.create(name: \"contractName\", truffle: { paths: [ TRUFFLE_PATH ] }, client: @client)\r\n@contract.deploy_and_wait(\"Hello from ethereum.rb!\")\r\n\r\n\r\n```\r\n[error]\r\n```\r\nJSON::ParserError: A JSON text must at least contain two octets!\r\n```\r\nAny hints or tips are appreciated.\r\nThank you."},"comment":{"url":"https://api.github.com/repos/EthWorks/ethereum.rb/issues/comments/414311007","html_url":"https://github.com/EthWorks/ethereum.rb/issues/98#issuecomment-414311007","issue_url":"https://api.github.com/repos/EthWorks/ethereum.rb/issues/98","id":414311007,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDMxMTAwNw==","user":{"login":"Flagship8787","id":663734,"node_id":"MDQ6VXNlcjY2MzczNA==","avatar_url":"https://avatars1.githubusercontent.com/u/663734?v=4","gravatar_id":"","url":"https://api.github.com/users/Flagship8787","html_url":"https://github.com/Flagship8787","followers_url":"https://api.github.com/users/Flagship8787/followers","following_url":"https://api.github.com/users/Flagship8787/following{/other_user}","gists_url":"https://api.github.com/users/Flagship8787/gists{/gist_id}","starred_url":"https://api.github.com/users/Flagship8787/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flagship8787/subscriptions","organizations_url":"https://api.github.com/users/Flagship8787/orgs","repos_url":"https://api.github.com/users/Flagship8787/repos","events_url":"https://api.github.com/users/Flagship8787/events{/privacy}","received_events_url":"https://api.github.com/users/Flagship8787/received_events","type":"User","site_admin":false},"created_at":"2018-08-20T13:10:20Z","updated_at":"2018-08-20T13:10:20Z","author_association":"NONE","body":"@Toshiboy86,\r\n\r\n   Since the Eth network does not validate ownership of addresses before sending funds, there is no need to do anything in order to fund the wallet you created.  In other words, once you have your public key, you can use it to receive ethereum.\r\n\r\n    That being said, you will not be able to access the funds without installing the keypair you generated (using ruby-eth) in a wallet such as MetaMask or a node such as Geth.\r\n\r\nHere are quick instrustructions for importing keys into metamask wallet:\r\n\r\nhttps://medium.com/@onstellar/how-to-install-metamask-and-import-your-myetherwallet-to-securely-transfer-ethereum-fe1405ea9fda"}}
{"actor":{"display_login":"Flagship8787"}}