Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhson1085 committed Aug 18, 2018
1 parent fce2f24 commit f5787b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = parseInt(web3.eth.gasPrice);
var gasPrice = 1; // 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);
Expand Down

0 comments on commit f5787b1

Please sign in to comment.