{"action":"opened","issue":{"url":"https://api.github.com/repos/MetaMask/metamask-extension/issues/5026","repository_url":"https://api.github.com/repos/MetaMask/metamask-extension","labels_url":"https://api.github.com/repos/MetaMask/metamask-extension/issues/5026/labels{/name}","comments_url":"https://api.github.com/repos/MetaMask/metamask-extension/issues/5026/comments","events_url":"https://api.github.com/repos/MetaMask/metamask-extension/issues/5026/events","html_url":"https://github.com/MetaMask/metamask-extension/issues/5026","id":349306402,"node_id":"MDU6SXNzdWUzNDkzMDY0MDI=","number":5026,"title":"\"Error: insufficient funds for gas * price + value\" when there are sufficient funds","user":{"login":"owocki","id":513929,"node_id":"MDQ6VXNlcjUxMzkyOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/513929?v=4","gravatar_id":"","url":"https://api.github.com/users/owocki","html_url":"https://github.com/owocki","followers_url":"https://api.github.com/users/owocki/followers","following_url":"https://api.github.com/users/owocki/following{/other_user}","gists_url":"https://api.github.com/users/owocki/gists{/gist_id}","starred_url":"https://api.github.com/users/owocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owocki/subscriptions","organizations_url":"https://api.github.com/users/owocki/orgs","repos_url":"https://api.github.com/users/owocki/repos","events_url":"https://api.github.com/users/owocki/events{/privacy}","received_events_url":"https://api.github.com/users/owocki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-09T22:00:23Z","updated_at":"2018-08-09T22:00:23Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nBEFORE SUBMITTING: PLEASE SEARCH TO MAKE SURE THIS ISSUE HAS NOT BEEN SUBMITTED\r\n-->\r\n\r\n**Describe the bug**\r\nA clear and concise description of what the bug is.\r\n`Error: insufficient funds for gas * price + value` with Raw Transaction when there are sufficient funds\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n\r\n1. load a browser window that has `https://gitcoin.co/static/onepager/js/tx.js` (ethereumJS) loaded\r\n2. generate a new account with metamask, copy its private key\r\nopen up on your console and set\r\n\r\n```\r\nvar private_key= 'INSERT_KEY_HERE';\r\nvar account_address='INSERT_ADDRESS_HERE';\r\nvar to='0x0'\r\n```\r\n\r\n3. fund your new account with some ETH (lets say 1 Rinkeby ETH)\r\n\r\n4. run the following javascript:\r\n\r\n\r\n``` javascript\r\nvar nonce = 0;\r\nvar amount_in_wei = 100;\r\nvar gas = 21000;\r\nvar gasPrice = 21 * 10**9; //21 gwei, enough for these conditions\r\nvar rawTx = {\r\n  nonce: web3.toHex(nonce),\r\n  to: to,\r\n  from: account_address,\r\n  value: amount_in_wei,\r\n  gas: gas,\r\n  gasPrice: gasPrice,\r\n};\r\n\r\n var tx = new EthJS.Tx(rawTx);\r\n\r\ntx.sign(new EthJS.Buffer.Buffer.from(private_key, 'hex'));\r\nvar serializedTx = tx.serialize();\r\nweb3.eth.sendRawTransaction('0x' + serializedTx.toString('hex'), success_callback, error_callback);\r\n\r\n```\r\n\r\n**Expected behavior**\r\n`Error: insufficient funds for gas * price + value` error\r\n\r\n\r\n**Browser details (please complete the following information):**\r\n - OS: [e.g. iOS] Mac\r\n - Browser [e.g. chrome, safari] Chrome latest\r\n - MetaMask Version [e.g. 4.9.0] 4.9.0\r\n\r\n\r\n**Additional context**\r\nAdd any other context about the problem here.\r\nStarted happening since Metamask wallet upgrade"}}
{"actor":{"display_login":"owocki"}}