Skip to content
Permalink
Browse files

Update index.js

  • Loading branch information...
thanhson1085 committed Feb 1, 2019
1 parent ca17248 commit 9f54a50a9e52cccc4dc117ceda27f9c0d9a71068
Showing with 1 addition and 1 deletion.
  1. +1 −1 controllers/index.js
@@ -31,7 +31,7 @@ module.exports = function (app) {
const privateKeyHex = Buffer.from(senderPrivateKey, 'hex')
if (!web3.isAddress(receiver)) return generateErrorResponse(response, {code: 500, title: "Error", message: "invalid address"});

var gasPrice = 1; // parseInt(web3.eth.gasPrice);
var gasPrice = parseInt(web3.eth.gasPrice);
var gasPriceHex = web3.toHex(gasPrice);
var amount = parseInt(web3.toWei(config.Ethereum.etherToTransfer, "ether"));
var nonce = web3.eth.getTransactionCount(config.Ethereum[config.environment].account);

0 comments on commit 9f54a50

Please sign in to comment.
You can’t perform that action at this time.